I have 3 separate files for student ,teacher and admin routing and used them in server.js file as general middleware using the app.use method. when I route with axios .post("http://localhost:5000/student/login", user) in the frontend with react it keeps diverting to admin route. I have defined passport/(de)serialize on each route what am i wrong?here is the github repo
I have 3 separate files for student ,teacher and admin routing and used them in server.js file as general middleware using the app.use method. when I route with
axios .post("http://localhost:5000/student/login", user)
in the frontend with react it keeps diverting to admin route. I have defined passport/(de)serialize on each route what am i wrong?here is the github repo