From c61c0cfc6bb7e448a7a6a21e6b13588549b4e12e Mon Sep 17 00:00:00 2001 From: advplyr Date: Thu, 2 Dec 2021 11:44:45 -0600 Subject: [PATCH] Fix:Mobile app api endpoint middleware --- server/ApiController.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/ApiController.js b/server/ApiController.js index cf7b998e..f161e589 100644 --- a/server/ApiController.js +++ b/server/ApiController.js @@ -65,8 +65,8 @@ class ApiController { this.router.patch('/libraries/order', LibraryController.reorder.bind(this)) // TEMP: Support old syntax for mobile app - this.router.get('/library/:id/audiobooks', LibraryController.getBooksForLibrary.bind(this)) - this.router.get('/library/:id/search', LibraryController.search.bind(this)) + this.router.get('/library/:id/audiobooks', LibraryController.middleware.bind(this), LibraryController.getBooksForLibrary.bind(this)) + this.router.get('/library/:id/search', LibraryController.middleware.bind(this), LibraryController.search.bind(this)) //