Skip to content

jkeylu/koa-radix-router

Repository files navigation

koa-radix-router

Router middleware for koa, like koa-router but more faster

Installation

npm install koa-radix-router

Usage

import * as Koa from 'koa';
import { Route } from 'koa-radix-router';

const app = new Koa();
const router = new Router();

router.get('/hello', ctx => {
    ctx.body = 'world';
});

app
    .use(router.routes())
    .use(router.allowedMethods());

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published