I have this URL matching
get("/portal/*", (req, res) -> { Map<String, Object> model = new HashMap<>();
return new VelocityTemplateEngine().render(
new ModelAndView(model, "../../portal/index.html")
);
});
All URLs like:
/portal/
/portal/orders
/portal/orders/123
/portal/foo/bar
Should return index.html. It works but I need to skip static resources. And I don't know how to do it. Something like this:
"/portal/{not word static}/*" - in other words, this URL should be not handled: /portal/static/css/main.css