Implemented logout (#154)

This commit is contained in:
Brendan Abolivier 2017-07-11 16:04:34 +01:00 committed by Mark Haines
parent 355ab5eedf
commit 7d36ca03af
3 changed files with 66 additions and 0 deletions

View file

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