Routes - saulack/uisge GitHub Wiki
Routes
Api Endpoints
Users
GET /api/users
- returns users
* POST /api/users
- sign up
'Session'
POST /api/session
- log in
DELETE /api/session
- logout
Posts
GET /api/posts
- returns posts
GET /api/posts/:id
- returns single post
POST /api/posts
- Create post
PATCH api/posts/:id
- edit post
DELETE /api/posts/:id
= remove a post
Bottles
GET /api/bottles
- returns posts
GET /api/bottles/:id
- returns single post
Ratings
GET /api/bottles
- returns posts
GET /api/bottles/:id
- returns single post
PATCH api/posts/:id
- edit post
DELETE /api/posts/:id
= remove a post
Frontend Routes
#/login
#/signup
#/feed
- general posts homepage
#/users/:userId
- user profile
#/posts/new
- create a post
#/posts/:postId
- post show
#/posts/:postId/edit
- update post