Wildcard route blocks static file access #4192
-
In my Adonis app, I use React as front-end framework and handling page routing at front-end. In Adonis' routes, I use: Route.group(() => {
// API routes...
}).prefix('/api');
// Web page routes
Route.get('*', async ({ view }) => {
const html = await view.render('app');
return html;
}); However, this wildcard route blocks my access to static files in |
Beta Was this translation helpful? Give feedback.
Answered by
RomainLanz
Jul 11, 2023
Replies: 1 comment 2 replies
-
You miss the configuration for static assets. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
guoyunhe
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You miss the configuration for static assets.
https://docs.adonisjs.com/guides/static-assets