Move pagination limit/page query param validation to middleware & check for positive integer

This commit is contained in:
advplyr 2024-10-06 16:29:30 -05:00
parent 8ba17db877
commit 64b78b5822
2 changed files with 24 additions and 22 deletions

View file

@ -479,8 +479,6 @@ export default {
})
},
async fetchAllAuthors() {
const authors = []
// fetch all authors from the server, in the order that they are currently displayed
const response = await this.$axios.$get(`/api/libraries/${this.currentLibraryId}/authors?sort=${this.settings.authorSortBy}&desc=${this.settings.authorSortDesc}`)
return response.authors