Skip to content
Oguzhan Cakmak edited this page Oct 22, 2017 · 2 revisions

Routes

HTML

  • GET / StaticPagesController#root

API Endpoints

users

  • GET /api/users - returns the user information for the User Search feature
  • POST /api/users - sign up

session

  • POST /api/session - log in
  • DELETE /api/session - log out

questions

  • GET /api/questions - returns relevant questions
  • GET /api/questions/:id - returns questions
  • POST /api/question - creates a question
  • PATCH /api/questions/:id - edit a question
  • DELETE /api/questions/:id - remove a question

Frontend Routes

  • /login
  • /signup
  • /feed - questions feed, homepage
  • /question/new - create a question
  • /questions/:questionId - question show
  • /question/:questionId/edit - update a question
  • /answer/new - create a answer
  • /answers/:answerId - answer show
  • /answer/:answerId/edit - update a answer
Clone this wiki locally