leptos-rs / start-axum

Starter template for use with the Leptos web framework and Axum.
The Unlicense
141 stars 26 forks source link

Change routing for static files #45

Open V4ldum opened 3 months ago

V4ldum commented 3 months ago

I changed the Axum Router to work more closely to the Actix start template. The Actix template enable controlling the folder static files are served in, which was not the case here. It should behave the exact same way it did before, serving the favicon at the root and WASM/JS/CSS inside of PKG, the only difference is that any files inside the "public" folder will now be served under "/assets", which you can change simply by changing the string inside the route.