Skip to content

Commit

Permalink
fix: user validation route not working
Browse files Browse the repository at this point in the history
  • Loading branch information
andyesp committed Aug 30, 2023
1 parent 9c909e4 commit ec180c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/back/routes/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ import { validateAddress } from '../utils/validations'

export default routes((route) => {
const withAuth = auth()
route.get('/user/:address/is-validated', handleAPI(isValidated))
route.get('/user/:address', handleAPI(getProfile))
route.get('/user/validate', withAuth, handleAPI(getValidationMessage))
route.post('/user/validate', withAuth, handleAPI(checkValidationMessage))
route.get('/user/:address/is-validated', handleAPI(isValidated))
route.get('/user/:address', handleAPI(getProfile))
})

const VALIDATIONS_IN_PROGRESS: Record<string, ValidationMessage> = {}
Expand Down

0 comments on commit ec180c4

Please sign in to comment.