Package-level declarations
Types
Looks up contents of a resource path.
Composite handler which can potentially service many different URL patterns. Should return a specified Response if it cannot service a particular Request.
Applies the generic templating routing logic regardless of protocol
Properties
Functions
Ensure the request is accepting a specific content type
Ensure all queries are present and match what is in the Uri
Simple Reverse Proxy which will split and direct traffic to the appropriate HttpHandler based on the content of the Host header
Simple Reverse Proxy. Exposes routing.
For SPAs we serve static content as usual, or fall back to the index page. The resource loader is configured to look at /public package (on the Classpath).
Serve static content using the passed ResourceLoader. Note that for security, by default ONLY mime-types registered in mime.types (resource file) will be served. All other types are registered as application/octet-stream and are not served.
Serve WebJar contents from the classpath. Just install the dependencies and add this line to your routes().