koa-radix-router
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i koa-radix-router

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • jkeylu