Generates a JavaScript router.
Generates a JavaScript router.
For example:
Routes.javascriptRouter("MyRouter")( controllers.routes.javascript.Application.index, controllers.routes.javascript.Application.list, controllers.routes.javascript.Application.create )
And then you can use the JavaScript router as:
var routeToHome = MyRouter.controllers.Application.index()
the JavaScript object name
the routes to include in this JavaScript router
the JavaScript code
Helper utilities related to
Router
.