Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

koa-routen

eggggger5MIT2.0.3

An koa route initialization and configuration module.

koa, enrouten, router, directory

readme

koa-enrouten

based on koa-router@7 Node version > 6

Usage

npm install koa-routen

const enrouten = require('koa-routen')
const Koa = require('koa')
const app = new Koa()

app.use(enrouten({ cwd: `${__dirname}/api` }))

Tests

$ npm test