Forgotten routes into v1 namespace

This commit is contained in:
Dane Everitt 2017-09-30 18:37:08 -05:00
parent 1bfc016e1b
commit 339d2d286d
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53

View File

@ -1,13 +1,13 @@
package api package api
func (api *InternalAPI) RegisterRoutes() { func (api *InternalAPI) RegisterRoutes() {
api.router.GET("/", AuthHandler(""), GetIndex)
api.router.PATCH("/config", AuthHandler("c:config"), PatchConfiguration)
// Register routes for v1 of the API. This API should be fully backwards compatable with // Register routes for v1 of the API. This API should be fully backwards compatable with
// the existing Nodejs Daemon API. // the existing Nodejs Daemon API.
v1 := api.router.Group("/v1") v1 := api.router.Group("/v1")
{ {
v1.GET("/", AuthHandler(""), GetIndex)
v1.PATCH("/config", AuthHandler("c:config"), PatchConfiguration)
v1BaseRoutes := v1.Group("/server") v1BaseRoutes := v1.Group("/server")
{ {
v1BaseRoutes.GET("/", AuthHandler("c:list"), ListServers) v1BaseRoutes.GET("/", AuthHandler("c:list"), ListServers)