mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-06-22 08:53:41 +02:00
Fix:Series covers on home page not spread out correctly #505, Update:Server settings are now returned with auth requests
This commit is contained in:
parent
c2a4b32192
commit
220bbc3d2d
6 changed files with 36 additions and 16 deletions
|
@ -230,7 +230,12 @@ class MiscController {
|
|||
Logger.error('Invalid user in authorize')
|
||||
return res.sendStatus(401)
|
||||
}
|
||||
res.json({ user: req.user, userDefaultLibraryId: req.user.getDefaultLibraryId(this.db.libraries) })
|
||||
const userResponse = {
|
||||
user: req.user,
|
||||
userDefaultLibraryId: req.user.getDefaultLibraryId(this.db.libraries),
|
||||
serverSettings: this.db.serverSettings.toJSON()
|
||||
}
|
||||
res.json(userResponse)
|
||||
}
|
||||
|
||||
getAllTags(req, res) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue