diff options
author | 6543 <6543@obermui.de> | 2019-12-29 13:32:31 +0100 |
---|---|---|
committer | zeripath <art27@cantab.net> | 2019-12-29 12:32:31 +0000 |
commit | 98bc3e1da82afa33ce13bb93c66d493149952f02 (patch) | |
tree | 7ed682b999efb86938648192b390b4968f3f4e7c /routers/routes/routes.go | |
parent | a70e8221002055de177e7ac32bd8b158156cccb4 (diff) | |
download | gitea-98bc3e1da82afa33ce13bb93c66d493149952f02.tar.gz gitea-98bc3e1da82afa33ce13bb93c66d493149952f02.zip |
remove since it is there for 3years (#9538)
Diffstat (limited to 'routers/routes/routes.go')
-rw-r--r-- | routers/routes/routes.go | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/routers/routes/routes.go b/routers/routes/routes.go index c434c42263..c8351f312b 100644 --- a/routers/routes/routes.go +++ b/routers/routes/routes.go @@ -385,24 +385,6 @@ func RegisterRoutes(m *macaron.Macaron) { m.Post("/keys/delete", userSetting.DeleteKey) m.Get("/organization", userSetting.Organization) m.Get("/repos", userSetting.Repos) - - // redirects from old settings urls to new ones - // TODO: can be removed on next major version - m.Get("/avatar", func(ctx *context.Context) { - ctx.Redirect(setting.AppSubURL+"/user/settings", http.StatusMovedPermanently) - }) - m.Get("/email", func(ctx *context.Context) { - ctx.Redirect(setting.AppSubURL+"/user/settings/account", http.StatusMovedPermanently) - }) - m.Get("/delete", func(ctx *context.Context) { - ctx.Redirect(setting.AppSubURL+"/user/settings/account", http.StatusMovedPermanently) - }) - m.Get("/openid", func(ctx *context.Context) { - ctx.Redirect(setting.AppSubURL+"/user/settings/security", http.StatusMovedPermanently) - }) - m.Get("/account_link", func(ctx *context.Context) { - ctx.Redirect(setting.AppSubURL+"/user/settings/security", http.StatusMovedPermanently) - }) }, reqSignIn, func(ctx *context.Context) { ctx.Data["PageIsUserSettings"] = true ctx.Data["AllThemes"] = setting.UI.Themes |