Is there any way of defining that a parameter in the url is of a specific type?
currently /documents/:id/pages/:pageNumber/ will parse out id and pagenumber as a string, not a number. This is causing me problems later on when i use these variables in my components. I'd rather fix the problem at the source rather than putting fixes in upstream
Is there any way of defining that a parameter in the url is of a specific type?
currently /documents/:id/pages/:pageNumber/ will parse out id and pagenumber as a string, not a number. This is causing me problems later on when i use these variables in my components. I'd rather fix the problem at the source rather than putting fixes in upstream
Cheers