4human-org / murphy-ecommerce-backend

Backend Repo for the Murphy E-Commerce App
2 stars 1 forks source link

Added some middleware, might need to be changed depending on front-end implementation #36

Open kailahulse opened 1 month ago

kailahulse commented 1 month ago

I added some middleware that basically for all the api endpoints checks if the user is logged in and for a few checks if the user is an admin by checking the isAdmin boolean in the database from users. Also not sure if this will play nice with the front end.