11 lines
482 B
Go
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)
|
|
}
|