From c879e1b0b378487d51b9cd520363f7538b02b2b5 Mon Sep 17 00:00:00 2001 From: tsmethurst Date: Tue, 2 Mar 2021 12:46:48 +0100 Subject: Messing around a bit --- internal/client/router.go | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'internal/client/router.go') diff --git a/internal/client/router.go b/internal/client/router.go index a3353df62..b7c68ad0e 100644 --- a/internal/client/router.go +++ b/internal/client/router.go @@ -39,14 +39,10 @@ func (r *router) Route() { ginRouter.LoadHTMLGlob("web/template/*") apiGroup := ginRouter.Group("/api") - { - v1 := apiGroup.Group("/v1", { - statusesGroup := v1.Group("/statuses") - { - statusesGroup.GET(":id", statusGet) - } - - }) - } + + v1 := apiGroup.Group("/v1") + + statusesGroup := v1.Group("/statuses") + statusesGroup.GET(":id", statusGet) ginRouter.Run() } -- cgit v1.2.3