aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorRémy Boulanouar <rboulanouar@gmail.com>2017-01-28 04:02:27 +0100
committer无闻 <u@gogs.io>2017-01-27 22:02:27 -0500
commit2ee0c61e62a47a620bf0e8f55c896616062008c1 (patch)
treee59ad87b381f36bf537d9255c28411327ac50e7e /cmd
parent3d23c131609e382c8874da247787cddb10ca0204 (diff)
Setting orgs (#3587)
* Implement organizations listing in setting and allow user to create new organization. * Implement organizations listing in setting and allow user to create new organization. * Add space remove by mistake * Remove unused part of the template * Update display and behavior according to @Unknown remarks
Diffstat (limited to 'cmd')
-rw-r--r--cmd/web.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/web.go b/cmd/web.go
index 79d28c48..2cbbb7c5 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -247,6 +247,7 @@ func runWeb(ctx *cli.Context) error {
m.Combo("/applications").Get(user.SettingsApplications).
Post(bindIgnErr(auth.NewAccessTokenForm{}), user.SettingsApplicationsPost)
m.Post("/applications/delete", user.SettingsDeleteApplication)
+ m.Get("/organizations", user.SettingsOrganizations)
m.Route("/delete", "GET,POST", user.SettingsDelete)
}, reqSignIn, func(ctx *context.Context) {
ctx.Data["PageIsUserSettings"] = true