feat: guard engine UI gateway access with safe prefix fallback (#1091)

This commit is contained in:
2026-11-17 13:18:51 +01:00
parent a1e267dcd4
commit c88084d1b5
5 changed files with 141 additions and 3 deletions

View File

@ -129,6 +129,11 @@ pub fn routes() -> Router<Arc<AppState>> {
.route("/ui/modelle/entfernen", post(verwaltung::model_remove))
.route("/ui/modelle/registrieren", post(verwaltung::model_register))
.route("/ui/engines", get(engines::engines_page))
.route("/ui/engine/{name}/", axum::routing::any(engines::engine_ui))
.route(
"/ui/engine/{name}/{*rest}",
axum::routing::any(engines::engine_ui_asset),
)
.route("/ui/warteschlange", get(verwaltung::queue_page))
.route("/ui/teil/warteschlange", get(verwaltung::queue_fragment))
.route("/ui/keys", get(verwaltung::keys_page))