UNPKG

ec-router

Version:

一个koa2自动路由中间件,直接根椐请求方法及路径路由到指定的controller。无需人工编写路由表或映射

40 lines (39 loc) 933 B
{ "name": "ec-router", "version": "1.2.0", "description": "一个koa2自动路由中间件,直接根椐请求方法及路径路由到指定的controller。无需人工编写路由表或映射", "main": "index.js", "scripts": { "test": "mocha --harmony --reporter spec" }, "repository": { "type": "git", "url": "git+https://github.com/tim1020/ec-router.git" }, "keywords": [ "koa", "koa2", "路由中间件", "middleware", "router", "route", "auto route", "RESTful", "自动路由", "路由", "controller" ], "author": "Tim <tim8670@gmail.com>", "license": "MIT", "bugs": { "url": "https://github.com/tim1020/ec-router/issues" }, "homepage": "https://github.com/tim1020/ec-router#readme", "dependencies": {}, "devDependencies": { "koa": "^2.2.0", "mocha": "^2.0.1", "supertest": "^1.0.1", "koa-bodyparser": "^4.2.0" } }