Files
Maestro/src/handlers/actions/actions.go
T
2026-07-29 01:36:09 +01:00

11 lines
482 B
Go

package actions
import "net/http"
func RunAction(w http.ResponseWriter, r *http.Request) {
// Stub, to implement, receives an action via frontend code and redirects it to the correct container, which will execute it and return the result to the frontend
// Request comes in format {"container_id": string, "action": { "method": "GET" | "POST" | "PUT" | "DELETE", "action_name": string }, "payload": object}
http.Error(w, "Action not implemented", http.StatusNotImplemented)
}