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.
The Injector from which to instantiate all the naptime resources.
The set of naptime macro resource router builders corresponding to the collection of resources to serve. These are typically bound via Guice multi-bindings.
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.