Routes - RSpencerFink/Concord GitHub Wiki
Routes
HTML
- GET / StaticPagesController#root
API ENDPOINTS
Users
- GET /api/users - Friends / Members Index
- POST /api/users - Register User
- POST /api/user/:user_id - Add Friend
- DELETE /api/user/:user_id - Remove Friend
Session
- POST /api/session - log in
- DELETE /api/session - log out
Server
- GET /api/servers - Home Page
- POST /api/servers - New Server
- GET /api/servers/:server_id - Server Page
Channel
- POST /api/servers/:server_id/channel - New Channel
- GET /api/servers/:server_id/channel/:channel_id - Channel Page
Message
- POST /api/servers/:server_id/channel/:channel_id/messages - New Chat Message
- DELETE /api/servers/:server_id/channel/:channel_id/messages/:message_id - Delete Chat Message
FRONTEND ROUTES
- / - Home Page
- /register - Register Page
- /login - Login Page
- /server/server_id - Server's Default Page
- /server/server_id/channel/channel_id - Specified channel within a server