You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Kyle Kassen edited this page Dec 16, 2022
·
4 revisions
Backend Routes
The routes presented below were utilized for the planning phase and may not necessarily reflect the current state of the website. Updated routes reflecting the final site will be added in the future.
Users
GET /api/users/
Returns the information for all users
GET /api/users/:id
Returns the information for one user
Sessions
GET /api/auth/
Returns the information for the logged in user
POST /api/auth/signup
Signs a new user up
POST /api/auth/login
Logs in a user
DELETE /api/auth/
Logs out a user
Products
GET /api/products/
Return all the products and all the images for the products
GET /api/products/:productId
Return the product and product image data, as well as the review/image and seller data