koa-tree-router icon indicating copy to clipboard operation
koa-tree-router copied to clipboard

high performance router for Koa

Results 6 koa-tree-router issues
Sort by recently updated
recently updated
newest added

I'm trying to migrate a code that is working with `@koa/router`, but the last middlware doesn't get called when using `koa-tree-router`: ``` router.use(...)

unable to specify catchall route handler if a named route exist at the same level issue: - it appears i cannot have a catchall route at the same level of...

Is there a way to get the matched route pattern as opposed to the actual url (`ctx.request.url`)? Also this middleware appears near the end of all my middleware (after the...

It is useful sometimes not to return 404 if trailing slash exists but not explicitly in route pattern. What about adding ignoreTrailingSlash option while instancing for ignoring trailing slashes?

Short: - implemented support of having exact route definitions for the same path as wildcard definitions; - adjusted test to cover the case; - added .idea to .gitignore; - improved...

Hello! Thank you for this package! I have an issue defining two subpaths for single-wildcarded route prefix: ```typescript const socialTypeWildGroup = authRouteGroup.newGroup('/:socialType') socialTypeWildGroup.delete('/foo', async (ctx) => {}) socialTypeWildGroup.get('/bar', async (ctx)...