File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -408,6 +408,6 @@ func GetTaskStats(w http.ResponseWriter, r *http.Request) {
408
408
helpers .WriteJSON (w , http .StatusOK , stats )
409
409
}
410
410
411
- func StopAllTasks (w http.ResponseWriter , r * http.Request ) {
411
+ func ( c * TaskController ) StopAllTasks (w http.ResponseWriter , r * http.Request ) {
412
412
w .WriteHeader (http .StatusNoContent )
413
413
}
Original file line number Diff line number Diff line change @@ -423,7 +423,7 @@ func Route(
423
423
projectTmplManagement .HandleFunc ("/{template_id}/tasks/last" , projects .GetLastTasks ).Methods ("GET" )
424
424
projectTmplManagement .HandleFunc ("/{template_id}/schedules" , projects .GetTemplateSchedules ).Methods ("GET" )
425
425
projectTmplManagement .HandleFunc ("/{template_id}/stats" , projects .GetTaskStats ).Methods ("GET" )
426
- projectTmplManagement .HandleFunc ("/{template_id}/stop_all_tasks" , projects .StopAllTasks ).Methods ("POST" )
426
+ projectTmplManagement .HandleFunc ("/{template_id}/stop_all_tasks" , taskController .StopAllTasks ).Methods ("POST" )
427
427
428
428
projectTmplInvManagement := projectTmplManagement .PathPrefix ("/{template_id}/inventory" ).Subrouter ()
429
429
projectTmplInvManagement .Use (projects .InventoryMiddleware )
You can’t perform that action at this time.
0 commit comments