mirror of
https://github.com/m1k1o/neko.git
synced 2025-05-31 09:57:08 +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
|
@ -103,3 +103,8 @@ func (api *ApiManagerCtx) UpdateProfile(w http.ResponseWriter, r *http.Request)
|
|||
|
||||
return utils.HttpSuccess(w, true)
|
||||
}
|
||||
|
||||
func (api *ApiManagerCtx) Stats(w http.ResponseWriter, r *http.Request) error {
|
||||
stats := api.sessions.Stats()
|
||||
return utils.HttpSuccess(w, stats)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue