|
|
@ -232,10 +232,16 @@ func RegisterRoutes(m *web.Route) { |
|
|
|
// Routers.
|
|
|
|
// Routers.
|
|
|
|
// for health check
|
|
|
|
// for health check
|
|
|
|
m.Get("/", Home) |
|
|
|
m.Get("/", Home) |
|
|
|
m.Get("/.well-known/openid-configuration", user.OIDCWellKnown) |
|
|
|
m.Group("/.well-known", func() { |
|
|
|
if setting.Federation.Enabled { |
|
|
|
m.Get("/openid-configuration", user.OIDCWellKnown) |
|
|
|
m.Get("/.well-known/nodeinfo", NodeInfoLinks) |
|
|
|
if setting.Federation.Enabled { |
|
|
|
} |
|
|
|
m.Get("/nodeinfo", NodeInfoLinks) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
m.Get("/change-password", func(w http.ResponseWriter, req *http.Request) { |
|
|
|
|
|
|
|
http.Redirect(w, req, "/user/settings/account", http.StatusTemporaryRedirect) |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
m.Group("/explore", func() { |
|
|
|
m.Group("/explore", func() { |
|
|
|
m.Get("", func(ctx *context.Context) { |
|
|
|
m.Get("", func(ctx *context.Context) { |
|
|
|
ctx.Redirect(setting.AppSubURL + "/explore/repos") |
|
|
|
ctx.Redirect(setting.AppSubURL + "/explore/repos") |
|
|
|