-
Notifications
You must be signed in to change notification settings - Fork 0
Routes
Steven Wang edited this page Jan 26, 2018
·
6 revisions
//login/register-
/channels/@me- user home page -
/channels/@me/:DMId- DM with other user -
/channels/:serverId/:channelId- specific server/channel
Create new server and channel are done without routes on the real app, may or may not have them in mine
-
POST /api/users- create new user - `GET /api/:sevrerId/users- fetches list of all users in a server
-
GET /api/servers- fetches all servers -
POST /api/servers- creates server -
DELETE /api/servers- deletes server
-
GET /api/:serverId/channels- fetches all channels in a server -
POST /api/channels- creates channel -
DELETE /api/channels- deletes channel
-
GET /api/:channelId/posts- fetches all posts in a channel -
POST /api/posts- creates post -
DELETE /api/posts- deletes post