Skip to content

Commit 9f91a82

Browse files
authored
Resolve not found to root (#458)
1 parent fffe536 commit 9f91a82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/handlers/http.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ pub fn configure_routes(cfg: &mut web::ServiceConfig) {
248248
.service(user_api),
249249
)
250250
// GET "/" ==> Serve the static frontend directory
251-
.service(ResourceFiles::new("/", generated));
251+
.service(ResourceFiles::new("/", generated).resolve_not_found_to_root());
252252
}
253253

254254
fn base_path() -> String {

0 commit comments

Comments
 (0)