UCLA-Creative-Labs / aurgy-backend

the logic behind generating out-of-body music playlists
MIT License
3 stars 0 forks source link

🚀 Feature: POST /lobby #4

Closed BryanPan342 closed 2 years ago

BryanPan342 commented 2 years ago

Create an endpoint POST /lobby that creates a new lobby

When a user wants to create a lobby, they will click a button that calls the /lobby request with their userId as a parameter to the request.

The backend then needs to create a lobby with the userId marked as the manager and as the first member in the list. This lobby needs to have a 16 digit hash that hasn't been used yet. We can do this by hashing a combination of the userId + time + retryNumber.

Return the hash to the user.


This is a :rocket: Feature Request