mirror of
https://github.com/element-hq/dendrite.git
synced 2025-09-13 21:02:25 +03:00
mas: added username_available endpoint
This commit is contained in:
parent
ba542fedcd
commit
2c47959600
4 changed files with 60 additions and 2 deletions
|
@ -334,7 +334,12 @@ func Setup(
|
|||
return util.JSONResponse{Code: http.StatusOK, JSON: map[string]string{
|
||||
"issuer": m.Issuer,
|
||||
}}
|
||||
}))
|
||||
})).Methods(http.MethodGet)
|
||||
|
||||
synapseAdminRouter.Handle("/admin/v1/username_available",
|
||||
httputil.MakeServiceAdminAPI("admin_username_available", m.AdminToken, func(r *http.Request) util.JSONResponse {
|
||||
return AdminCheckUsernameAvailable(r, userAPI, cfg)
|
||||
})).Methods(http.MethodGet)
|
||||
}
|
||||
|
||||
if mscCfg.Enabled("msc2753") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue