Implement /logout/all (#307)

Signed-off-by: Remi Reuvekamp <git@remireuvekamp.nl>
This commit is contained in:
Remi Reuvekamp 2017-10-15 10:29:47 +00:00 committed by Erik Johnston
parent 32a2b3a5c0
commit 1a026f16d5
4 changed files with 59 additions and 4 deletions

View file

@ -160,6 +160,12 @@ func Setup(
}),
).Methods("POST", "OPTIONS")
r0mux.Handle("/logout/all",
common.MakeAuthAPI("logout", deviceDB, func(req *http.Request, device *authtypes.Device) util.JSONResponse {
return LogoutAll(req, deviceDB, device)
}),
).Methods("POST", "OPTIONS")
// Stub endpoints required by Riot
r0mux.Handle("/login",