single page application

58 views
Skip to first unread message

Avi Ben Harush

unread,
Aug 19, 2019, 9:40:45 AM8/19/19
to dropwizard-user
Hi,

I have a single page application with the following configuration
    bootstrap.addBundle(new AssetsBundle("/app", "/app", "index.html", "static"))

whenever I goto "http://localhost:8080/app" all works well, but when I goto "http://localhost:8080/app/dashboard" I get a 404 response.
how can I configure dropwizard to support path like "/app/*" ?

thanks

Jochen Schalanda

unread,
Aug 20, 2019, 5:25:33 PM8/20/19
to dropwiz...@googlegroups.com
Hi,

there's currently no native way to do this in Dropwizard. Feature request on GitHub or pull request welcome. ;-)

You could use a servlet filter such as [1] or [2] for this, though.



Cheers,
Jochen
Reply all
Reply to author
Forward
0 new messages