Backend Routes - lisuzanne94/soundCRUD GitHub Wiki
Backend Routes
HTML
GET /
StaticPagesController#root
API Endpoints
users
GET api/users
- returns user info
POST api/users
- sign up
session
POST api/session
- log in
DELETE api/session
- log out
tracks
GET api/tracks/:id
- returns single track
POST api/tracks
- upload new track
PATCH api/tracks/:id
- update a track
DELETE api/tracks/:id
- delete a track
comments
POST /api/comments
- create a comment
DELETE /api/comments/:comment_id
- delete a comment