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

minimanimo API #18

Open
linehyang opened this issue Oct 29, 2021 · 0 comments
Open

minimanimo API #18

linehyang opened this issue Oct 29, 2021 · 0 comments

Comments

@linehyang
Copy link
Contributor

axios 요청 시 헤더에 타입 쓰시오. 토큰은 Bearer type으로 하시오.

const config = {
      headers: {
        'Content-Type': 'application/json',
         Authorization: `Bearer ${userInfo.token}`,
      },
    };

Validate Route(POST)

email → '/api/validate/email'
nickname → '/api/validate/nickname'

User Route

register(POST) → '/api/users'
login(POST) → '/api/users/login'
getProfile(GET) → '/api/users/profile'
updateProfile(PUT) → '/api/users/profile'

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

No branches or pull requests

1 participant