From e11a8460ff5ad652fb4da471c3b00da7ab42a778 Mon Sep 17 00:00:00 2001 From: kaysond Date: Mon, 29 Nov 2021 19:55:48 -0800 Subject: [PATCH] add SRI for other resources; add routing for all root requests --- app/index.html | 15 +++++++++++---- app/index_local.html | 19 +++++++++++++++---- server/src/infra/tcp_server.rs | 2 +- 3 files changed, 27 insertions(+), 9 deletions(-) diff --git a/app/index.html b/app/index.html index 1b4d45a..07713d8 100644 --- a/app/index.html +++ b/app/index.html @@ -18,12 +18,19 @@ - + + + - - - diff --git a/app/index_local.html b/app/index_local.html index d2513be..99d1d11 100644 --- a/app/index_local.html +++ b/app/index_local.html @@ -13,11 +13,22 @@ - - + + + + - - diff --git a/server/src/infra/tcp_server.rs b/server/src/infra/tcp_server.rs index 6a67521..d1424ac 100644 --- a/server/src/infra/tcp_server.rs +++ b/server/src/infra/tcp_server.rs @@ -78,7 +78,7 @@ fn http_config( .service( web::scope("/") .route("", web::get().to(index)) - .route("index.html", web::get().to(index)), + .route(".*", web::get().to(index)), ); }