From 377ae7ab19d2cb0e9bfae5a60f3f2d2cdbae167e Mon Sep 17 00:00:00 2001 From: advplyr Date: Sat, 30 Jul 2022 15:52:13 -0500 Subject: [PATCH] Update /matchall api endpoint to GET --- client/components/tables/library/LibraryItem.vue | 2 +- server/routers/ApiRouter.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/components/tables/library/LibraryItem.vue b/client/components/tables/library/LibraryItem.vue index f9b7f1f4..c6fd6add 100644 --- a/client/components/tables/library/LibraryItem.vue +++ b/client/components/tables/library/LibraryItem.vue @@ -105,7 +105,7 @@ export default { }, matchAll() { this.$axios - .$post(`/api/libraries/${this.library.id}/matchall`) + .$get(`/api/libraries/${this.library.id}/matchall`) .then(() => { console.log('Starting scan for matches') }) diff --git a/server/routers/ApiRouter.js b/server/routers/ApiRouter.js index 99bb5ae6..4b415280 100644 --- a/server/routers/ApiRouter.js +++ b/server/routers/ApiRouter.js @@ -68,7 +68,7 @@ class ApiRouter { this.router.get('/libraries/:id/search', LibraryController.middleware.bind(this), LibraryController.search.bind(this)) this.router.get('/libraries/:id/stats', LibraryController.middleware.bind(this), LibraryController.stats.bind(this)) this.router.get('/libraries/:id/authors', LibraryController.middleware.bind(this), LibraryController.getAuthors.bind(this)) - this.router.post('/libraries/:id/matchall', LibraryController.middleware.bind(this), LibraryController.matchAll.bind(this)) + this.router.get('/libraries/:id/matchall', LibraryController.middleware.bind(this), LibraryController.matchAll.bind(this)) this.router.get('/libraries/:id/scan', LibraryController.middleware.bind(this), LibraryController.scan.bind(this)) // Root only this.router.post('/libraries/order', LibraryController.reorder.bind(this))