Skip to content

MAKUSref/GoTogether_backend

Repository files navigation

GoTogether_backend

End points

Users (/api/user)

POST
/ - register new user
/login - login user

GET
/ - get all users
/:id - get one user by id

DELETE
/:id - delete user

Rooms (/api/room/)

POST
/ - create room

GET
/filter/hosted - get rooms by host id
/filter/requested - get all requested rooms
/filter/accepted - get all accepted rooms
/ - get all rooms
/my-rooms - get all your rooms (hosted, joined, requested)
/:roomId - get room by id

DELETE
/:roomId - delete room
/delete/users - delete user from accepted users list
/delete/requested - delete user from requested users list
/delete/hosts - delete user from hosts list

PATCH
/join-user - request user to room
/accept-user - accept user request
/grant-host - grant host role to user

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published