Skip to content

Commit

Permalink
test: pass tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fiftin committed Aug 26, 2023
1 parent 97c0cbb commit 5c8e518
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,9 @@ func Route() *mux.Router {
projectTaskStart.Use(projects.ProjectMiddleware, projects.GetMustCanMiddleware(db.CanRunProjectTasks))
projectTaskStart.Path("/tasks").HandlerFunc(projects.AddTask).Methods("POST")

projectTaskStop := authenticatedAPI.PathPrefix("/tasks").Subrouter()
projectTaskStop := authenticatedAPI.PathPrefix("/project/{project_id}").Subrouter()
projectTaskStop.Use(projects.ProjectMiddleware, projects.GetTaskMiddleware, projects.GetMustCanMiddleware(db.CanRunProjectTasks))
projectTaskStop.HandleFunc("/{task_id}/stop", projects.StopTask).Methods("POST")
projectTaskStop.HandleFunc("/tasks/{task_id}/stop", projects.StopTask).Methods("POST")

//
// Project resources CRUD
Expand Down

0 comments on commit 5c8e518

Please sign in to comment.