Package-level declarations
Types
Looks up contents of a resource path.
The result of a matching operation. May or may not contain a matched HttpHandler.
Composite HttpHandler which can potentially service many different URL patterns. Should return a 404 Response if it cannot service a particular Request.
Functions
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().