Book cover uploader, moving streams to /metadata/streams, adding jwt auth from query string, auth check static metadata

This commit is contained in:
Mark Cooper 2021-09-21 20:57:33 -05:00
parent d234fdea11
commit 6cb418a871
18 changed files with 377 additions and 36 deletions

View file

@ -62,4 +62,8 @@ module.exports.getIno = (path) => {
Logger.error('[Utils] Failed to get ino for path', path, err)
return null
})
}
module.exports.isAcceptableCoverMimeType = (mimeType) => {
return mimeType && mimeType.startsWith('image/')
}