This commit is contained in:
Mateusz Gruszczyński
2026-09-07 11:38:55 +02:00
parent 749172e527
commit 0cb09769fd
17 changed files with 83 additions and 44 deletions
+2
View File
@@ -50,6 +50,7 @@ const INDEX_HTML: &str = include_str!("../web/index.html");
const NOT_FOUND_HTML: &str = include_str!("../web/404.html");
const APP_JS: &str = include_str!(concat!(env!("OUT_DIR"), "/app.bundle.js"));
const THEME_INIT_JS: &str = include_str!("../web/theme-init.js");
const LANG_INIT_JS: &str = include_str!("../web/lang-init.js");
const STYLES_CSS: &str = include_str!("../web/styles.css");
const MANIFEST: &str = include_str!("../web/manifest.webmanifest");
const SERVICE_WORKER: &str = include_str!("../web/sw.js");
@@ -257,6 +258,7 @@ pub fn router(state: AppState) -> Router {
.route("/index.html", get(index))
.route(APP_JS_ASSET_PATH, get(app_js))
.route(THEME_INIT_ASSET_PATH, get(theme_init_js))
.route(LANG_INIT_ASSET_PATH, get(lang_init_js))
.route(STYLES_CSS_ASSET_PATH, get(styles_css))
.route("/manifest.webmanifest", get(manifest))
.route("/sw.js", get(service_worker))