feat(image-hoster): enterprise redesign with obsidian liquid glass theme, server background vault, session governance with auto-expiration, live telemetry, and multi-format exports
This commit is contained in:
@@ -660,5 +660,16 @@ func NewRouter(pm *ProcessManager) http.Handler {
|
||||
http.Error(w, "Image manipulator not found", http.StatusNotFound)
|
||||
})
|
||||
|
||||
r.HandleFunc("/files/*", func(w http.ResponseWriter, req *http.Request) {
|
||||
_ = pm.EnsureRunning(req.Context(), "image-hoster")
|
||||
cfg := pm.getConfig("image-hoster")
|
||||
if cfg != nil {
|
||||
proxy := toolProxy(pm, "image-hoster", cfg.Port)
|
||||
proxy.ServeHTTP(w, req)
|
||||
return
|
||||
}
|
||||
http.Error(w, "Image hoster not found", http.StatusNotFound)
|
||||
})
|
||||
|
||||
return r
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user