real init
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user