Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

리소스 room 추가 #4 #5

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

r4k0nb4k0n
Copy link
Member

@r4k0nb4k0n r4k0nb4k0n commented Feb 6, 2021

Pull Request from #4

작업 내용

  • mongoose model modelRoomroom.model.js에 정의했어요.
    • pin, gameId, gamers로 구성되어 있습니다.
  • POST /room을 구현했어요.
    • Body로 gameId를 받습니다.
    • 6자리 숫자 PIN Code를 생성하고, 기존에 중복되는 것이 있는지 확인하는 로직이 있습니다.
  • DELETE /room/:roomId를 구현했어요.
    • roomId를 가진 room을 찾고 지웁니다.
  • /api/room으로 접속할 수 있도록 routes/api/index.js에 추가했습니다.

리뷰 노트

  • 아직 리소스 game이 없기 때문에, gameId 유효 확인 로직은 나중에 따로 Issue 생성하겠습니다.

@r4k0nb4k0n r4k0nb4k0n added the enhancement New feature or request label Feb 6, 2021
@r4k0nb4k0n r4k0nb4k0n added this to the 필수 REST API milestone Feb 6, 2021
@r4k0nb4k0n r4k0nb4k0n self-assigned this Feb 6, 2021
@r4k0nb4k0n r4k0nb4k0n linked an issue Feb 6, 2021 that may be closed by this pull request
2 tasks
@gusrb3164
Copy link

LGTM! 👍

@zeze1004
Copy link

zeze1004 commented Feb 9, 2021

형진님 코드 pull 받아서 합쳐야할까요?

@r4k0nb4k0n
Copy link
Member Author

형진님 코드 pull 받아서 합쳐야할까요?

제 코드랑 겹치는 부분이 없어서 그럴 필요는 없을 것 같아요!

@rxdcxdrnine
Copy link

LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

game PIN 코드 및 웹소켓 생성 구현
4 participants