Allow unauthenticated access to /wasm/ in dev mode

This commit is contained in:
2026-06-28 13:46:57 -04:00
parent 0463714882
commit 142182af74

View File

@@ -7,8 +7,12 @@ use dioxus::prelude::*;
use crate::server::auth::AuthSession; use crate::server::auth::AuthSession;
#[cfg(not(debug_assertions))]
const ALLOWED_PATH_PREFIX: [&str; 1] = ["/assets/"]; const ALLOWED_PATH_PREFIX: [&str; 1] = ["/assets/"];
#[cfg(debug_assertions)]
const ALLOWED_PATH_PREFIX: [&str; 2] = ["/assets/", "/wasm/"];
const ALLOWED_PATHS: [&str; 5] = [ const ALLOWED_PATHS: [&str; 5] = [
"/login", "/login",
"/signup", "/signup",