Closed ryanlabouve closed 6 years ago
I was thinking about Koa2 example at some point. Feel free to add one, I'll do my final touch on top of it. Personally I'm not a huge fan of excessive comments, because it will be much easier to spot the differences between the Koa1 and Koa2 examples if you open up the files in split view or just diff them. Also the examples follow the same style rules as the rest of the code base, you can validate your example using npm run lint
.
Totally! I just added the comments for the sake of sharing the snippet here. I will cleanup and PR tonight. :)
Thank you for all the great examples! I had to make some modification to get with
"koa": "^2.5.0"
.I would be happy to add something like this as an additional example if it would be helpful:
(I also left comments on what I had to change)