aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/web.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/web.go')
-rw-r--r--cmd/web.go10
1 files changed, 4 insertions, 6 deletions
diff --git a/cmd/web.go b/cmd/web.go
index 3a63d0845d..c57c223f19 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -206,12 +206,6 @@ func runWeb(ctx *cli.Context) {
Post(bindIgnErr(auth.InstallForm{}), routers.InstallPost)
m.Get("/^:type(issues|pulls)$", reqSignIn, user.Issues)
- // ***** START: API *****
- m.Group("/api", func() {
- apiv1.RegisterRoutes(m)
- }, ignSignIn)
- // ***** END: API *****
-
// ***** START: User *****
m.Group("/user", func() {
m.Get("/login", user.SignIn)
@@ -550,6 +544,10 @@ func runWeb(ctx *cli.Context) {
})
// ***** END: Repository *****
+ m.Group("/api", func() {
+ apiv1.RegisterRoutes(m)
+ }, ignSignIn)
+
// robots.txt
m.Get("/robots.txt", func(ctx *context.Context) {
if setting.HasRobotsTxt {