mirror of
https://github.com/element-hq/dendrite.git
synced 2025-09-14 13:22:26 +03:00
Add whoami endpoint support (#434)
* Add whoami endpoint support Signed-off-by: Anant Prakash <anantprakashjsr@gmail.com> * Trim code, update against merged changes
This commit is contained in:
parent
1176c1d574
commit
dc89e04e7d
2 changed files with 40 additions and 0 deletions
|
@ -181,6 +181,12 @@ func Setup(
|
|||
}),
|
||||
).Methods(http.MethodPut, http.MethodOptions)
|
||||
|
||||
r0mux.Handle("/account/whoami",
|
||||
common.MakeAuthAPI("whoami", authData, func(req *http.Request, device *authtypes.Device) util.JSONResponse {
|
||||
return Whoami(req, device)
|
||||
}),
|
||||
).Methods(http.MethodGet, http.MethodOptions)
|
||||
|
||||
// Stub endpoints required by Riot
|
||||
|
||||
r0mux.Handle("/login",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue