koa-version-router
v1.0.0
Published
auto add version to router
Downloads
7
Readme
koa-version-router
auto add version to router
Features
- use koa-version
- use koa-router
- auto add version to router
Examples
var app = require('koa')()
var version = require('koa-version-router')
var routes = __dirname + '/routes'
/*
- routes //default version 1.0.0
- user.js //default route
- pet.js //default route
- 2.0.0 //2.0.0 routes
- user.js
*/
version(app, routes)