Value on custom validator null #1377
Unanswered
rodolphonetto
asked this question in
Help
Replies: 2 comments 2 replies
-
How did you define your endpoint for that route? Something like /deleteunity/:id? And how have you been accessing the parameter? |
Beta Was this translation helpful? Give feedback.
2 replies
-
localhost:3333/deleteunity/2?data=1
const { data } = request.get() // data = 1
params.id // 2 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello guys, I'm trying to get a value to validate if I can delete something or not. But value is null, because it is a param of router for example: localhost:3333/deleteunity/1
I need that 1
If I pass localhost:3333/deleteunity/1?data=1
Then I have it
Beta Was this translation helpful? Give feedback.
All reactions