Closed 8471919 closed 6 months ago
Make it nullable
instead of optional
.
It is the right decision, because path parameter can't be skipped.
@samchon
Can't I use 2 endpoint in one function of controller?
like @Get(['/:a/:b', '/:a'])
That's so sad news... thank you for your reply.
Have not considered that case.
Just define two methods please.
Okay. thank you!
I want to use
@TypedParam
decorator as optional in this case. for example.but, this doesn't work.
this is the error message when I run e2e test.
In above picture, I want to make relationType to optional. but It's impossible.
and also, I can't set default value.![image](https://github.com/samchon/nestia/assets/27190776/a3160b8e-8795-431e-81f3-b14e984ae122)
@Param
works well both of situation.In case of
@Param
decorator, It works.