mirror of
https://github.com/simon987/task_tracker.git
synced 2025-12-13 23:09:02 +00:00
Clear old monitoring snapshots, logout endpoint
This commit is contained in:
@@ -77,6 +77,13 @@ func (api *WebAPI) Login(r *Request) {
|
||||
}).Info("Logged in")
|
||||
}
|
||||
|
||||
func (api *WebAPI) Logout(r *Request) {
|
||||
|
||||
sess := api.Session.StartFasthttp(r.Ctx)
|
||||
sess.Clear()
|
||||
r.Ctx.Response.SetStatusCode(204)
|
||||
}
|
||||
|
||||
func (api *WebAPI) Register(r *Request) {
|
||||
|
||||
req := &RegisterRequest{}
|
||||
|
||||
Reference in New Issue
Block a user