-
Notifications
You must be signed in to change notification settings - Fork 0
Frontend Routes
If a user is not logged in this page will display a navbar with the option to log in, signup, or log in as a demo user.
This page will display a selection of user-submitted tracks and associated comments.
If a user is logged in, they can comment on tracks as well as edit and delete them.
If a user is not logged in and attempts to use any features, they will be directed to either login or sign up.
GET /
POST /tracks/:id/comments
PATCH /tracks/:id/comments/:id
DELETE /tracks/:id/comments/:id
This page will display a list of all users registered to the app
Each listed user will have a link that leads to their homepage
GET /users
GET /users/:id
This page will display the selected user's profile page.
Each page will have a profile picture, a user bio, a list of the user's uploaded tracks, and an album of completed songs.
If an authorized user is on their own page, that user can upload, edit, or delete their profile picture. They can write, edit, or delete their own bio. They can upload or delete tracks and songs. They can create, edit and delete their own comments.
If a user is on another user's page, they can listen to and comment on tracks and songs. They can download tracks to collaborate on.
GET /users/:id
GET /users/:id/tracks
POST users/:id/tracks
DELETE users/:id/tracks/:id
POST users/:id/tracks/:id/comments
PATCH users/:id/tracks/:id/comments/:id
DELETE users/:id/tracks/:id/comments/:id
POST users/:id/songs/:id
DELETE users/:id/songs/:id
POST users/:id/songs/:id/comments
PATCH users/:id/songs/:id/comments/:id
DELETE users/:id/songs/:id/comments/:id