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:
advplyr 2022-04-29 17:43:46 -05:00
parent c2a4b32192
commit 220bbc3d2d
6 changed files with 36 additions and 16 deletions

View file

@ -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) {