-
Notifications
You must be signed in to change notification settings - Fork 399
Closed
Labels
type: questionQuestions about the usage of the library.Questions about the usage of the library.
Description
Hi,
How i can set optionnal parameter with @param ?
Documentation say :
@Param(name: string, options?: ParamOptions)
But in fact, @param have only one argument :
export function Param(name: string): Function
@Get('/dev/:test?')
@OnUndefined(200)
public async devRoute(@Param('test') test: string): Promise<void> {
// Some stuff
console.log('test : ', test);
}
Maybe i miss something ?
Thanks.
Metadata
Metadata
Assignees
Labels
type: questionQuestions about the usage of the library.Questions about the usage of the library.