feat(ui): show user's lastAccess (#3342)

* feat(server): update user's lastAccess

* feat(ui): show user's lastAccess
This commit is contained in:
Deluan Quintão 2024-09-30 20:46:10 -04:00 committed by GitHub
parent 5e8085bf3c
commit a9334b7787
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 148 additions and 11 deletions

View file

@ -35,6 +35,7 @@ func (n *Router) routes() http.Handler {
r.Group(func(r chi.Router) {
r.Use(server.Authenticator(n.ds))
r.Use(server.JWTRefresher)
r.Use(server.UpdateLastAccessMiddleware(n.ds))
n.R(r, "/user", model.User{}, true)
n.R(r, "/song", model.MediaFile{}, false)
n.R(r, "/album", model.Album{}, false)