Heroku: https://avalon7.herokuapp.com/
- GET /room gets all rooms(where user is a member) of a user
- GET /croom gets all rooms created by the user
- POST /room creates a room for the user// content: name, description
- DELETE /room/:roomId user leaves the room
- POST /join joins the room based on the nanoid code// content: code
- GET /task/ gets tasks of a pirticular user
- GET /task/:room_id gets tasks of the pirticular room
- PUT /task/:task_id updates the tasks// content: {completed: true}
-
GET admin/:room_id gets all members in the room with there tasks of that room
-
POST admin/task/:room_id/:user_id admins posts tasks to members// content: Task
-
DELETE admin/task/:taskId deletes/removes the task
-
Get /admin/:roomId/:userId the specific students tasks(for admin) (Important)
-
POST /admin/addAdmins/:roomId adds new admins by their githubIds
-
PUT /admin/:roomId updates the room description
-
PUT /room/msg/:roomId Create and Update the message of the room
-
DELETE /room/msg/:roomId Delete the message of the room
-
DELETE /admin/:room_id/:user_id Admin should be able to kick members
-
DELETE /admin/:roomId Admin can dismantle the room
- Create all the routes
- Connect it with Svelte, polka, fetch