handleCrontab handles requests for individual crontabs
(w http.ResponseWriter, r *http.Request)
| 2693 | |
| 2694 | // handleCrontab handles requests for individual crontabs |
| 2695 | func 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 |
| 2705 | func contains(slice []string, str string) bool { |
nothing calls this directly
no test coverage detected