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:
-
url
StringRegular expresion string
-
url
StringURL to route
-
view
ViewView object
Returns:
Route
Example:
// Set route
m.app.route("index.html", m.app.view("index"));
/
// Get route
route = m.app.route("index.html");