POST /api/auth- Regular email/password loginPOST /api/auth/google-auth- Google SSO authentication
GET /api/user/me- Get current user profilePUT /api/user- Update user profile
POST /api/users- Register new userGET /api/users- Get user by emailGET /api/users/all- Get all usersDELETE /api/users/:id- Delete user (requires authAccountOrAdmin)
GET /api/listings- Get all listings with filtersPOST /api/listings- Create new listingGET /api/listings/countTrickLists- Get count of trick listsGET /api/listings/all- Get all trick lists
PUT /api/listing/edit- Edit listingDELETE /api/listing/:id- Delete listing
GET /api/messages- Get user messagesPOST /api/messages- Send message
GET /api/blog- Get blog postsPOST /api/blog- Create blog postPUT /api/blog/:id- Update blog postDELETE /api/blog/:id- Delete blog post
POST /api/blogImage- Upload blog image
GET /api/categories- Get all categories
POST /api/contact- Send contact form
POST /api/image- Upload image
GET /api/my- Get user's data
POST /api/expoPushTokens- Register push notification token
- All routes except:
POST /api/authPOST /api/auth/google-authPOST /api/users(registration)GET /api/categories
DELETE /api/users/:id(requires admin or account owner)
x-auth-token: JWT token for authenticationAuthorization: Bearer token for some endpoints
- Success responses typically include the requested data
- Error responses include an
errorfield with the error message - Status codes:
- 200: Success
- 201: Created
- 400: Bad Request
- 401: Unauthorized
- 403: Forbidden
- 404: Not Found
- 500: Server Error