diff options
author | 2021-03-02 12:46:48 +0100 | |
---|---|---|
committer | 2021-03-02 12:46:48 +0100 | |
commit | c879e1b0b378487d51b9cd520363f7538b02b2b5 (patch) | |
tree | f1a20db6cad591803e7a34ccb0efa06641603c6d /internal/client/router.go | |
parent | bits n bobs (diff) | |
download | gotosocial-c879e1b0b378487d51b9cd520363f7538b02b2b5.tar.xz |
Messing around a bit
Diffstat (limited to 'internal/client/router.go')
-rw-r--r-- | internal/client/router.go | 14 |
1 files changed, 5 insertions, 9 deletions
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() } |