add webfinger to registration
This commit is contained in:
parent
d1e93ad8f0
commit
2eb90df659
1 changed files with 1 additions and 0 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue