handleCrontabs handles requests for crontabs
(w http.ResponseWriter, r *http.Request)
| 2558 | |
| 2559 | // handleCrontabs handles requests for crontabs |
| 2560 | func 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 |
| 2574 | func handlePutCrontabs(w http.ResponseWriter, r *http.Request) { |
nothing calls this directly
no test coverage detected