routes - Rmark92/Soundstorm GitHub Wiki

API Endpoints

session

  • POST /session
  • DELETE /session

users

  • GET /api/users/:user_id - retrieves user info, corresponding tracks and comments
  • POST /api/users

tracks

  • GET /api/tracks
  • GET /api/tracks/:track_id - retrieves track and corresponding comments
  • POST /api/tracks
  • PATCH /api/track/:track_id
  • DELETE /api/track/:track_id

comments

  • POST /comments
  • DELETE /comments

Frontend Routes

  • / - splash page
  • /login
  • /signup
  • /charts - home page
  • /users/:userId - user show page
  • /tracks/new - new track form
  • /tracks/:trackId/edit - edit track
  • /tracks/:trackId - track show page