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

[POST] /auth/signup 회원가입 구현 #8

Merged
merged 4 commits into from
Jan 11, 2022
Merged

[POST] /auth/signup 회원가입 구현 #8

merged 4 commits into from
Jan 11, 2022

Conversation

xxeol2
Copy link
Contributor

@xxeol2 xxeol2 commented Jan 10, 2022

✅ Default Checklist

  • check branch

  • set Labels

  • set Reviewers


📕 Task

  • POST /auth/signup 회원가입 api 구현 완료

💡TODO

  • 이미지 리사이징 후 response body에 size별 profileImg 추가

@xxeol2 xxeol2 added Enhancement ✨ New feature or request 🐱 설희 labels Jan 10, 2022
@xxeol2 xxeol2 changed the base branch from main to develop January 10, 2022 15:56
Comment on lines +1 to +18
const functions = require('firebase-functions');
const admin = require('firebase-admin');
const util = require('../../../lib/util');
const statusCode = require('../../../constants/statusCode');
const responseMessage = require('../../../constants/responseMessage');
const db = require('../../../db/db');
const { userDB } = require('../../../db');
const jwtHandlers = require('../../../lib/jwtHandlers');

/**
* @회원가입
* @route POST /auth/signup
* @body socialId:string, nickname:string, profileImg:file
* @error
* 1. socialId/nickname이 전달되지 않음
* 2. 이미 존재하는 socialId
* 3. 닉네임 10자 초과
*/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

첨에 고민하다가 Annotation을 require 이전에 작성했었는데, 요렇게 하셨군요~~
설희쌤 따라 다음 api부터는 요렇게 갑니다~~~ㅋㅋㅋㅋㅋㅋㅎ

Copy link
Contributor

@junghyun-jacky junghyun-jacky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

좋아요!

@xxeol2 xxeol2 merged commit 9aba967 into develop Jan 11, 2022
@xxeol2 xxeol2 deleted the feat/#6 branch January 11, 2022 07:25
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.

3 participants