Router
Summary
The Router class is for defining routes
Constructor
Router
Syntax
Router
()
Summary
Item Index
Methods
Methods
route
Syntax
route
(
-
url -
url -
view
Summary
Create a route
Parameters:
-
urlStringRegular expresion string
-
urlStringURL to route
-
viewViewView object
Returns:
Route
Example:
// Set route
m.app.route("index.html", m.app.view("index"));
/
// Get route
route = m.app.route("index.html");