forked from boos/BoosAPI
feat: ComfyUI video assistant SaaS plan + shared types cleanup
- Add plan/2026-05-18-comfyui-video-assistant-saas.md (gpt-5.5 generated) - Add src/server/ and src/shared/ type definitions - Update comfyui routes and api_key auth - Remove old metapi docs, deploy/k3s, and deprecated configs
This commit is contained in:
@@ -83,6 +83,8 @@ 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", get(proxy_static_root))
|
||||
.route("/api/comfyui/proxy/", get(proxy_static_root))
|
||||
.route("/api/comfyui/proxy/{*path}", get(proxy_static))
|
||||
// HTML page (public)
|
||||
.route("/comfyui", get(comfyui_page))
|
||||
@@ -146,6 +148,11 @@ async fn proxy_get_view(
|
||||
|
||||
// ── Static proxy (public — assets/JS/CSS for iframe) ─────────────────
|
||||
|
||||
/// GET /api/comfyui/proxy (root) — redirect to proxied root
|
||||
async fn proxy_static_root() -> AppResult<Response> {
|
||||
proxy_static(Path("/".to_string())).await
|
||||
}
|
||||
|
||||
/// GET /api/comfyui/proxy/{path} — proxy everything (HTML, assets)
|
||||
async fn proxy_static(Path(path): Path<String>) -> AppResult<Response> {
|
||||
info!("GET /api/comfyui/proxy/{}", path);
|
||||
|
||||
Reference in New Issue
Block a user