i have something like this but i want to know how to use two middlewares so i can get something like in second router. The "another middleware" is to check if user is logged in.
router.post("/searchbook", authController.searchbook))
router.post("/searchbook", another middleware, authController.search))