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

Function handleCrontab

cmd/dash.go:2695–2702  ·  view source on GitHub ↗

handleCrontab handles requests for individual crontabs

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

Source from the content-addressed store, hash-verified

2693
2694// handleCrontab handles requests for individual crontabs
2695func handleCrontab(w http.ResponseWriter, r *http.Request) {
2696 switch r.Method {
2697 case "PUT":
2698 handlePutCrontabs(w, r)
2699 default:
2700 http.Error(w, "Method not allowed", http.StatusMethodNotAllowed)
2701 }
2702}
2703
2704// Helper function to check if a slice contains a string
2705func contains(slice []string, str string) bool {

Callers

nothing calls this directly

Calls 2

handlePutCrontabsFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected