summaryrefslogtreecommitdiffstats
path: root/lib/agent/apiv1.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/agent/apiv1.go')
-rw-r--r--lib/agent/apiv1.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/agent/apiv1.go b/lib/agent/apiv1.go
index 3fd9990..3e742f5 100644
--- a/lib/agent/apiv1.go
+++ b/lib/agent/apiv1.go
@@ -33,10 +33,10 @@ func NewAPIV1(ctx *Context) *APIService {
s.apiRouter.GET("/browse", s.browseFS)
s.apiRouter.GET("/projects", s.getProjects)
- s.apiRouter.GET("/project/:id", s.getProject)
- s.apiRouter.POST("/project", s.addProject)
- s.apiRouter.POST("/project/sync/:id", s.syncProject)
- s.apiRouter.DELETE("/project/:id", s.delProject)
+ s.apiRouter.GET("/projects/:id", s.getProject)
+ s.apiRouter.POST("/projects", s.addProject)
+ s.apiRouter.POST("/projects/sync/:id", s.syncProject)
+ s.apiRouter.DELETE("/projects/:id", s.delProject)
s.apiRouter.POST("/exec", s.execCmd)
s.apiRouter.POST("/exec/:id", s.execCmd)