A macro bundle that builds ResourceRouterBuilders specialized to particular types.
Handles routing for Naptime resources in an idiomatic fashion for Play projects.
Handles routing for Naptime resources in an idiomatic fashion for Play projects.
To use this router, include in your routes file something like:
# Include Naptime resources -> /api org.coursera.naptime.router2.PlayNaptimeRouter
Requests matching the prefix for naptime resources will then be routed appropriately.
Collects the common data structures useful for request routing, including the router builders, as well as the routers themselves.
The prefix path under which the resources should be served (in the example above:
/api
).
The core interface for the router.
The core interface for the router. Implement this interface in order to be able to route your requests.
Note: typically, a macro implements these functions for individual resources by subclassing one of the types below.
Use me to build a router that can be used to route requests.
The macro-based router for Naptime.
The macro-based router for Naptime. This should be instantiated in the Play! application's Global
and hooked into the Global's onRouteRequest
method.