From 339d2d286d21eef066de7ee64f8e39ada0fa6607 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sat, 30 Sep 2017 18:37:08 -0500 Subject: [PATCH] Forgotten routes into v1 namespace --- api/routes.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/routes.go b/api/routes.go index cc2063c..d4b3cec 100644 --- a/api/routes.go +++ b/api/routes.go @@ -1,13 +1,13 @@ package api 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 // the existing Nodejs Daemon API. v1 := api.router.Group("/v1") { + v1.GET("/", AuthHandler(""), GetIndex) + v1.PATCH("/config", AuthHandler("c:config"), PatchConfiguration) + v1BaseRoutes := v1.Group("/server") { v1BaseRoutes.GET("/", AuthHandler("c:list"), ListServers)