aboutsummaryrefslogtreecommitdiff
path: root/gogs.patch
blob: e326f956a5b3a84daf1835d77585f15533211d0d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/routes/api/v1/api.go b/routes/api/v1/api.go
index d73f57f3..a1658ac3 100644
--- a/routes/api/v1/api.go
+++ b/routes/api/v1/api.go
@@ -182,6 +182,11 @@ func RegisterRoutes(m *macaron.Macaron) {
                m.Group("/users", func() {
                        m.Group("/:username", func() {
                                m.Get("/keys", user.ListPublicKeys)
+                       })
+               })
+
+               m.Group("/users", func() {
+                       m.Group("/:username", func() {

                                m.Get("/followers", user.ListFollowers)
                                m.Group("/following", func() {