- Route:
GET /products
- Controller:
GetAllProducts
- Route:
POST /admin/product/new
- Middleware:
cookieCheck
isAutherizedByAdmin("admin")
- Controller:
AddProduct
- Route:
PUT /admin/product/:id
- Middleware:
cookieCheck
isAutherizedByAdmin("admin")
- Controller:
UpdateProduct
- Route:
DELETE /admin/product/:id
- Middleware:
cookieCheck
isAutherizedByAdmin("admin")
- Controller:
deleteProduct
- Route:
PUT /user/product/review
- Middleware:
cookieCheck
- Controller:
addReview
- Route:
GET /user/product/review
- Controller:
getAllReviews
- Route:
DELETE /user/product/review
- Middleware:
cookieCheck
- Controller:
deleteReview
- Route:
GET /product/:id
- Controller:
ProductSigleProductDetails
- Route:
POST /register
- Controller:
registerUser
- Route:
POST /login
- Controller:
loginUser
- Route:
GET /admin/users
- Middleware:
cookieCheck
isAutherizedByAdmin("admin")
- Controller:
allUsers
- Route:
GET /logout
- Controller:
logoutUser
- Route:
POST /resetpassword
- Controller:
resetPassword
- Route:
PUT /resetpassword/:token
- Controller:
passwordUpdate
- Route:
GET /user/profile
- Middleware:
cookieCheck
- Controller:
userProfile
- Route:
PUT /user/password
- Middleware:
cookieCheck
- Controller:
updatePassword
- Route:
PUT /user/Update
- Middleware:
cookieCheck
- Controller:
updateUserProfile
- Route:
GET /admin/user/:id
- Middleware:
cookieCheck
isAutherizedByAdmin("admin")
- Controller (Get):
SingleUser
- Controller (Delete):
deleteUser
- Controller (Update Role):
roleUpdate