Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change routing for static files #45

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

V4ldum
Copy link

@V4ldum V4ldum commented Jul 5, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant