Sai Raj
06/01/2021, 4:27 AMRyan
06/01/2021, 6:22 AMSai Raj
06/01/2021, 6:39 AMSai Raj
06/01/2021, 6:40 AMRyan
06/01/2021, 6:56 AMRyan
06/01/2021, 6:57 AMSai Raj
06/01/2021, 6:57 AM/api/v1/user/authuser is the routeSai Raj
06/01/2021, 6:59 AMRyan
06/01/2021, 7:04 AMreq.user when you log it here?Sai Raj
06/01/2021, 7:04 AMSai Raj
06/01/2021, 7:05 AMSai Raj
06/01/2021, 7:07 AMSai Raj
06/01/2021, 7:07 AMRyan
06/01/2021, 7:16 AMrouter.get('/authuser', auth, ash(getAuthUserInfo))
router.get('/:userId', ash(getUserInfo))
Express matches the first route it gets. So specific routes need to come first.Sai Raj
06/01/2021, 7:22 AMSai Raj
06/01/2021, 7:24 AM