Open SalischevArtem opened 2 years ago
Could you try @Delete(/(^UPC-[0-9A-F]{19}-[0-9A-F]{1}$)/)
?
Unfortunately, it doesn’t work.
Argument of type 'RegExp' is not assignable to parameter of type 'string | string[]'.
Having same issue
Interesting, one question is does you have the same issue with the built-in RounterModule
in nestjs?
Also, maybe it should work like so @Delete('/:id(^UPC-[0-9A-F]{19}-[0-9A-F]{1}$)/')
Hello!
I have the issue which was discussed but can't apply the suggested resolving.
I have two DELETE like bellow :
My ids smt like this
/^UPC-[0-9A-F]{19}-[0-9A-F]{1}$/
So regarding this issue in second DELETE I have to do smth like this
@Delete('/:id(^UPC-[0-9A-F]{19}-[0-9A-F]{1}$)/')
But it doesn’t work.What I'm doing wrong?
Thank for helping.