Question about DELETE route for master-koa
killmenot opened this issue · 3 comments
killmenot commented
killmenot commented
The second question related to this snippet of the code is:
all routes runs in order:
1 - 'VERB ' + path + '/:type'
2 - 'VERB ' + path + '/:type/*'
but POST in
1 - 'VERB ' + path + '/:type/*'
2 - 'VERB ' + path + '/:type'
Is it correct?
robtweed commented
You're right - the DELETE should appear twice like the others
robtweed commented
Regarding your second question, the order shouldn't matter, but align them if you wish