Code Review
/
src
/
xds
/
xds-server.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
|
inline
| side by side (parent:
ebf3806
)
Use plural nouns for all routes.
author
Sebastien Douheret
<sebastien.douheret@iot.bzh>
Mon, 6 Nov 2017 13:50:55 +0000
(14:50 +0100)
committer
Sebastien Douheret
<sebastien.douheret@iot.bzh>
Mon, 6 Nov 2017 15:00:04 +0000
(16:00 +0100)
lib/apiv1/apiv1.go
patch
|
blob
|
history
diff --git
a/lib/apiv1/apiv1.go
b/lib/apiv1/apiv1.go
index
0a96311
..
d10a08e
100644
(file)
--- a/
lib/apiv1/apiv1.go
+++ b/
lib/apiv1/apiv1.go
@@
-39,13
+39,13
@@
func New(r *gin.Engine, sess *session.Sessions, cfg *xdsconfig.Config, mfolders
s.apiRouter.POST("/config", s.setConfig)
s.apiRouter.GET("/folders", s.getFolders)
s.apiRouter.POST("/config", s.setConfig)
s.apiRouter.GET("/folders", s.getFolders)
- s.apiRouter.GET("/folder/:id", s.getFolder)
- s.apiRouter.POST("/folder", s.addFolder)
- s.apiRouter.POST("/folder/sync/:id", s.syncFolder)
- s.apiRouter.DELETE("/folder/:id", s.delFolder)
+ s.apiRouter.GET("/folder
s
/:id", s.getFolder)
+ s.apiRouter.POST("/folder
s
", s.addFolder)
+ s.apiRouter.POST("/folder
s
/sync/:id", s.syncFolder)
+ s.apiRouter.DELETE("/folder
s
/:id", s.delFolder)
s.apiRouter.GET("/sdks", s.getSdks)
s.apiRouter.GET("/sdks", s.getSdks)
- s.apiRouter.GET("/sdk/:id", s.getSdk)
+ s.apiRouter.GET("/sdk
s
/:id", s.getSdk)
s.apiRouter.POST("/make", s.buildMake)
s.apiRouter.POST("/make/:id", s.buildMake)
s.apiRouter.POST("/make", s.buildMake)
s.apiRouter.POST("/make/:id", s.buildMake)