#Phantom Endpoint

4 messages · Page 1 of 1 (latest)

grave river
#

I'm currently running into issue where one of my endpoints seems to check for validations that doesn't exists.
If i rename the url to -> /users/profile keeps getting the same response.
I'm very confused

cloud cove
#

Move the @Get('profile') route handler to above the @Get(':idUser') one

#

Otherwise, :idUser will match whatever you send after /user/. Think of it as a .* regex

grave river
#

That actually solved the issue, I think i readed something related to writing endpoints on a correct way for express. Thanks a lot