diff options
author | Unknwon <u@gogs.io> | 2015-08-19 04:58:45 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-08-19 04:58:45 +0800 |
commit | 47ac579f092cef9128fa0c74798ecaffa2c888f9 (patch) | |
tree | f1df7b8742fe72c36aaaf3330a196b090e3dbc54 /cmd | |
parent | 928d9fc1d42fdc030cbf3847a0370f5088548379 (diff) | |
download | gitea-47ac579f092cef9128fa0c74798ecaffa2c888f9.tar.gz gitea-47ac579f092cef9128fa0c74798ecaffa2c888f9.zip |
only assign auto-admin when sign up by web
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/web.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/web.go b/cmd/web.go index a0e72b3810..386fae74f8 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -206,7 +206,7 @@ func runWeb(ctx *cli.Context) { m.Get("/issues", user.Issues) }, reqSignIn) - // API. + // ***** START: API ***** // FIXME: custom form error response. m.Group("/api", func() { m.Group("/v1", func() { @@ -248,6 +248,7 @@ func runWeb(ctx *cli.Context) { }) }) }, ignSignIn) + // ***** END: API ***** // ***** START: User ***** m.Group("/user", func() { |