Skip to content

Jackong/koa-version-router

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

koa-version-router

auto add version to router


Features


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)

About

auto add version to router

Resources

License

Stars

Watchers

Forks

Packages

No packages published