fix: ComfyUI wildcard route syntax for axum 0.8+

- Changed  to  in comfyui proxy route
- Added config.toml for local dev
- Verified: Rust backend starts and serves /healthz, /api/sites,
  /api/events, /api/tasks, /api/settings, /api/organizations/plans
- 18/18 tests pass
This commit is contained in:
boos
2026-05-17 17:08:36 +08:00
parent fe1a7c2115
commit 15f73a2793
2 changed files with 23 additions and 1 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ pub fn routes() -> Router<AppState> {
.route("/api/comfyui/queue", get(proxy_get_queue))
.route("/api/comfyui/view", get(proxy_get_view))
// Static proxy (public — assets/JS/CSS)
.route("/api/comfyui/proxy/*path", get(proxy_static))
.route("/api/comfyui/proxy/{*path}", get(proxy_static))
// HTML page (public)
.route("/comfyui", get(comfyui_page))
}