reorder services
This commit is contained in:
parent
2e742629dd
commit
63da2898e1
@ -25,9 +25,9 @@ async fn main() -> std::io::Result<()> {
|
|||||||
|
|
||||||
App::new()
|
App::new()
|
||||||
// serve JS/WASM/CSS from `pkg`
|
// serve JS/WASM/CSS from `pkg`
|
||||||
|
.service(Files::new("/assets", &site_root))
|
||||||
.service(Files::new("/pkg", format!("{site_root}/pkg")))
|
.service(Files::new("/pkg", format!("{site_root}/pkg")))
|
||||||
// serve other assets from the `assets` directory
|
// serve other assets from the `assets` directory
|
||||||
.service(Files::new("/assets", &site_root))
|
|
||||||
// serve the favicon from /favicon.ico
|
// serve the favicon from /favicon.ico
|
||||||
.service(favicon)
|
.service(favicon)
|
||||||
.leptos_routes(routes, {
|
.leptos_routes(routes, {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user