We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcc1125 commit 1f0dab2Copy full SHA for 1f0dab2
routers/web/web.go
@@ -232,10 +232,16 @@ func RegisterRoutes(m *web.Route) {
232
// Routers.
233
// for health check
234
m.Get("/", Home)
235
- m.Get("/.well-known/openid-configuration", user.OIDCWellKnown)
236
- if setting.Federation.Enabled {
237
- m.Get("/.well-known/nodeinfo", NodeInfoLinks)
238
- }
+ m.Group("/.well-known", func() {
+ m.Get("/openid-configuration", user.OIDCWellKnown)
+ if setting.Federation.Enabled {
+ m.Get("/nodeinfo", NodeInfoLinks)
239
+ }
240
+ m.Get("/change-password", func(w http.ResponseWriter, req *http.Request) {
241
+ http.Redirect(w, req, "/user/settings/account", http.StatusTemporaryRedirect)
242
+ })
243
244
+
245
m.Group("/explore", func() {
246
m.Get("", func(ctx *context.Context) {
247
ctx.Redirect(setting.AppSubURL + "/explore/repos")
0 commit comments