feat(image-manipulator): fix inpainting mask offset, add background job governance with time limit, split view and enterprise presets
This commit is contained in:
@@ -649,5 +649,16 @@ func NewRouter(pm *ProcessManager) http.Handler {
|
||||
http.Error(w, "Image manipulator not found", http.StatusNotFound)
|
||||
})
|
||||
|
||||
r.HandleFunc("/api/jobs/*", func(w http.ResponseWriter, req *http.Request) {
|
||||
_ = pm.EnsureRunning(req.Context(), "image-manipulator")
|
||||
cfg := pm.getConfig("image-manipulator")
|
||||
if cfg != nil {
|
||||
proxy := toolProxy(pm, "image-manipulator", cfg.Port)
|
||||
proxy.ServeHTTP(w, req)
|
||||
return
|
||||
}
|
||||
http.Error(w, "Image manipulator not found", http.StatusNotFound)
|
||||
})
|
||||
|
||||
return r
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user