Constructor
new Origami(port, settings)
Parameters:
| Name | Type | Description |
|---|---|---|
port |
number | The port the app should bind to |
settings |
object | The settings to intialize the app with |
Members
Component
Shorthand for creating a component and mounting it to the app.
listen
Create an Origami server. Goes live on the port specified on instantiation.
Mount
Mount something onto the app.
Route
Shorthand for creating a route and mounting it to the app.
use
Mount a directory to the application. Routes and components are imported automatically.