Closed this issue 7 years ago · 1 comments
So, what do we had then? /api/v1/:model/:?type Model is required and /api/v1 shouldn't work. Type ))) is optional /api/v1/blog should works even without type. I could be wrong, correct me if so. Cheers
/api/v1/:model/:?type
/api/v1
/api/v1/blog
Use https://github.com/pillarjs/path-to-regexp#optional