mirror of
https://github.com/m1k1o/neko.git
synced 2025-05-18 11:36:59 +02:00
implement session stats, fixes last (admin|user) left at won't work for any provider that removed users after logout.
This commit is contained in:
parent
356a566bc6
commit
4f401ac2b6
7 changed files with 124 additions and 21 deletions
|
@ -47,6 +47,7 @@ func (api *ApiManagerCtx) Route(r types.Router) {
|
|||
r.Post("/logout", api.Logout)
|
||||
r.Get("/whoami", api.Whoami)
|
||||
r.Post("/profile", api.UpdateProfile)
|
||||
r.Get("/stats", api.Stats)
|
||||
|
||||
sessionsHandler := sessions.New(api.sessions)
|
||||
r.Route("/sessions", sessionsHandler.Route)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue