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

Feature/issue 116/search api account #118

Merged
merged 4 commits into from
May 27, 2024

Conversation

lcaohoanq
Copy link
Member

#116
In this issue, i created this api for search the account data with the request provide email or phone (include access_token) and some type corresponding

/*
 description: search API account
 path: /users/search
  method: GET
  header: {Authorization: Bearer <access_token>}
  body: {email_phone: string}
*/

usersRouter.post(
    '/search',
    accessTokenValidator,
    checkEmailOrPhone,
    searchAccountValidator,
    wrapAsync(searchAccountController)
)

@lcaohoanq lcaohoanq requested a review from Buicongbang04 May 27, 2024 08:25
@lcaohoanq lcaohoanq merged commit fcc2b31 into develop May 27, 2024
@lcaohoanq lcaohoanq linked an issue May 28, 2024 that may be closed by this pull request
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

Successfully merging this pull request may close these issues.

[BO] Search API account
2 participants