I am trying to convert Http service written using Vertx to Akka Http (2.0.5) in Java. I had a couple of URLs like -
- "/api/addresses/id/:id/limit/:limit"
- "/api/addresses/:id/:shortid/:type"
How to get the above paths matched?
Also, how can the static resources (like html, js, css files) be served from a resource directory? Is this path matcher fine - pathPrefix("assets/*.html", () -> getFromResourceDirectory("assets"))