mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-26 08:13:33 +01:00
remove since it is there for 3years (#9538)
This commit is contained in:
parent
a70e822100
commit
98bc3e1da8
1 changed files with 0 additions and 18 deletions
|
@ -385,24 +385,6 @@ func RegisterRoutes(m *macaron.Macaron) {
|
||||||
m.Post("/keys/delete", userSetting.DeleteKey)
|
m.Post("/keys/delete", userSetting.DeleteKey)
|
||||||
m.Get("/organization", userSetting.Organization)
|
m.Get("/organization", userSetting.Organization)
|
||||||
m.Get("/repos", userSetting.Repos)
|
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) {
|
}, reqSignIn, func(ctx *context.Context) {
|
||||||
ctx.Data["PageIsUserSettings"] = true
|
ctx.Data["PageIsUserSettings"] = true
|
||||||
ctx.Data["AllThemes"] = setting.UI.Themes
|
ctx.Data["AllThemes"] = setting.UI.Themes
|
||||||
|
|
Loading…
Reference in a new issue