MCPcopy Create free account
hub / github.com/cronitorio/cronitor-cli / handleCrontabs

Function handleCrontabs

cmd/dash.go:2560–2571  ·  view source on GitHub ↗

handleCrontabs handles requests for crontabs

(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

2558
2559// handleCrontabs handles requests for crontabs
2560func handleCrontabs(w http.ResponseWriter, r *http.Request) {
2561 switch r.Method {
2562 case "GET":
2563 handleGetCrontabs(w, r)
2564 case "POST":
2565 handlePostCrontabs(w, r)
2566 case "PUT":
2567 handlePutCrontabs(w, r)
2568 default:
2569 http.Error(w, "Method not allowed", http.StatusMethodNotAllowed)
2570 }
2571}
2572
2573// handlePutCrontabs handles PUT requests to update a crontab
2574func handlePutCrontabs(w http.ResponseWriter, r *http.Request) {

Callers

nothing calls this directly

Calls 4

handleGetCrontabsFunction · 0.85
handlePostCrontabsFunction · 0.85
handlePutCrontabsFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected