koajs / router

Router middleware for Koa. Maintained by @forwardemail and @ladjs.
MIT License
871 stars 176 forks source link

Url params not part of ctx.request #99

Closed TLPcoder closed 4 years ago

TLPcoder commented 4 years ago

Params are part of the request and should be part of the request object of the ctx in koa. Similar to how headers, query, url, method, and other request related data are. This request is more to follow the domain of where data should belong rather than fixing a bug. I have created, forked, updated, and unit tested the code.

niftylettuce commented 4 years ago

Can you submit a PR or something so I have something to look at? Also, your GitHub email and username might need fixed, your commits are not showing with the same @TLPCoder icon/GitHub profile.

Screen Shot 2020-08-12 at 3 45 16 PM