Skip to content
Americo edited this page Apr 2, 2018 · 3 revisions

Frontend Routes

  • /login
  • /signup
  • /users/:userId
  • /main - activity feed, homepage
  • /routes - route display page
  • /routes/new - create a route
  • /activity/new - create a new activity

Api Endpoints

users

  • GET /api/users - returns user information for the Suggested Friends feature
  • GET /api/users/:id
  • POST /api/users

activities

  • GET /api/activities - returns relevant activities (filtered by data/params)
  • POST /api/activities - creates a new activity

routes

  • GET /api/routes - returns relevant routes
  • POST /api/routes - creates a new route

comments

  • POST /api/comments - comment on an activity

likes

  • POST /api/likes - like an activity
  • DELETE /api/likes - unlike an activity

follows

  • POST /api/follows - follow a user
  • DELETE /api/follows - unfollow a user
Clone this wiki locally