You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
koa-router supports an array of URLs, but it seems that this.params function is not working in this case:
router.get(['/product/:product',// first url in the array'/product/:product/account/:account',// second url in the array],function*(){console.log(this.params);// undefined for first url});
Apparently only second (last?) this.params array is working, but not the first one
The text was updated successfully, but these errors were encountered:
koa-router supports an array of URLs, but it seems that this.params function is not working in this case:
Apparently only second (last?) this.params array is working, but not the first one
The text was updated successfully, but these errors were encountered: