Skip to content
theimberger edited this page Oct 23, 2017 · 1 revision

Routes

Frontend

  • /sign_in
  • /sign_up
  • /channel/:id

Backend

  • api/user/:id

    • GET - get information about a current user (user controller show method),
    • POST - create a new user (user controller create method)
  • api/users

    • GET - get all users for a channel (user controller index method)
  • api/channels

    • POST - create a new channel
  • api/channel/:id

    • GET - view a channel's messages (channel controller show method and messages index method)
  • api/messages

    • GET - get messages,
    • POST - add a new message,
    • PATCH - edit a message
Clone this wiki locally