add webfinger to registration

This commit is contained in:
mStar aka a person 2024-01-29 17:09:11 +00:00
parent d1e93ad8f0
commit 2eb90df659

View file

@ -19,6 +19,7 @@ import (
func Register(server *server.Server) { func Register(server *server.Server) {
server.Router.GET("/api/ap/user/:id", GetUser(server)) server.Router.GET("/api/ap/user/:id", GetUser(server))
server.Router.GET("/.well-known/webfinger", WebfingerEndpoint(server))
} }
func GetUser(server *server.Server) func(http.ResponseWriter, *http.Request, httprouter.Params) { func GetUser(server *server.Server) func(http.ResponseWriter, *http.Request, httprouter.Params) {