The Wayback Machine - https://web.archive.org/web/20200528160207/https://github.com/topics/small
Skip to content
#

small

Here are 279 public repositories matching this topic...

BananaAcid
BananaAcid commented Aug 16, 2017

Adding a let r2 = new Router({prefix: 'a'}).loadMethods().get('/', (ctx, next) => {ctx.body='supposed to be at /api/a/'; return next();}) with let r1 = new Router({prefix: 'api'}).addRoutes(r2); does not result in a callable route. Actually koa-better-router crashes with not having any routes.

And using extend -> let r1 = new Router({prefix: 'api'}).extend(r2); will loose all prefix inf

Improve this page

Add a description, image, and links to the small topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the small topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.