api/time_controller.go
Method TimeController.serve
has 5 return statements (exceeds 4 allowed). Open
Open
func (controller *TimeController) serve(response http.ResponseWriter, request *http.Request, requestData *RequestData) {
switch {
case request.Method == "GET":
if requestData.Resource != "" {
http.Error(response, "Invalid request", http.StatusBadRequest)