summaryrefslogtreecommitdiff
path: root/internal/client/router.go
diff options
context:
space:
mode:
authorLibravatar tsmethurst <tobi.smethurst@protonmail.com>2021-03-02 12:46:48 +0100
committerLibravatar tsmethurst <tobi.smethurst@protonmail.com>2021-03-02 12:46:48 +0100
commitc879e1b0b378487d51b9cd520363f7538b02b2b5 (patch)
treef1a20db6cad591803e7a34ccb0efa06641603c6d /internal/client/router.go
parentbits n bobs (diff)
downloadgotosocial-c879e1b0b378487d51b9cd520363f7538b02b2b5.tar.xz
Messing around a bit
Diffstat (limited to 'internal/client/router.go')
-rw-r--r--internal/client/router.go14
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()
}