show terminal expiry and fix SPA fallback

This commit is contained in:
lda
2026-07-21 00:34:29 +07:00 Verified
parent 0ff4a91cc2
commit 4eca9ea297
6 changed files with 61 additions and 10 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ fn public_api_routes(ui_dist_dir: std::path::PathBuf) -> Router<AppState> {
.route("/", get(|| async { Redirect::temporary("/ui/") })) // same as caddyfile
.nest_service(
"/ui/",
get_service(ServeDir::new(ui_dist_dir).not_found_service(ServeFile::new(index_file))),
get_service(ServeDir::new(ui_dist_dir).fallback(ServeFile::new(index_file))),
)
.route("/healthz", get(api::healthz))
.route("/api/v1/agents/enroll", post(api::enroll))