mirror of
https://github.com/nitnelave/lldap.git
synced 2023-04-12 14:25:13 +00:00
Default the web server to returning index.html
This commit is contained in:
parent
da4009b0b7
commit
f19a4b36de
@ -192,7 +192,9 @@ where
|
|||||||
.configure(api_config::<Backend>),
|
.configure(api_config::<Backend>),
|
||||||
)
|
)
|
||||||
// Serve the /pkg path with the compiled WASM app.
|
// Serve the /pkg path with the compiled WASM app.
|
||||||
.service(Files::new("/pkg", "./app/pkg"));
|
.service(Files::new("/pkg", "./app/pkg"))
|
||||||
|
// Default to serve index.html for unknown routes, to support routing.
|
||||||
|
.service(web::scope("/").route("/.*", web::get().to(index)));
|
||||||
}
|
}
|
||||||
|
|
||||||
struct AppState<Backend>
|
struct AppState<Backend>
|
||||||
|
Loading…
Reference in New Issue
Block a user