Implemented Webfinger endpoint.

This commit is contained in:
KN4CK3R
2022-04-20 21:03:00 +01:00
committed by Anthony Wang
parent 702a963308
commit 523ca3d89b
2 changed files with 113 additions and 0 deletions

View File

@@ -242,6 +242,7 @@ func RegisterRoutes(m *web.Route) {
m.Get("/openid-configuration", auth.OIDCWellKnown)
if setting.Federation.Enabled {
m.Get("/nodeinfo", NodeInfoLinks)
m.Get("/webfinger", WebfingerQuery)
}
m.Get("/change-password", func(w http.ResponseWriter, req *http.Request) {
http.Redirect(w, req, "/user/settings/account", http.StatusTemporaryRedirect)