Skip to content
Matt Ha edited this page Jan 30, 2018 · 7 revisions

HTML Routes

  • GET / StaticPagesController#root

API Endpoints

  • Users
    • GET /api/users/:id -> Single User
    • POST /api/users -> Sign Up
    • PATCH /api/stories/:id -> Edit User Settings
  • Session
    • POST /api/session -> Log In
    • DELETE api/session -> Log Out
  • Posts
    • GET /api/posts -> All posts for feed, profile, and search
    • POST /api/posts -> Create new post
    • GET /api/posts/:id -> Show single post
    • PATCH /api/posts/:id -> Edit post
    • DELETE /api/posts/:id -> Delete post
  • Comments
    • POST /api/comments -> Create new comment
    • PATCH /api/comments/:id -> Edit comment
    • DELETE /api/comments/:id -> Delete comment
  • Follows
    • POST /api/users/:id/follows -> Follow user
    • DELETE /api/users/:id/follows -> Unfollow user
  • Likes
    • POST /api/posts/:id/likes -> Like a post
    • DELETE /api/posts/:id/likes -> Unlike post or comment

Frontend Routes

  • /signin
  • /login
  • /:user_id
  • /posts/:post_id
  • /posts/new
  • /stories/:user_id
  • /explore

Clone this wiki locally