0.0.4 • Published 7 years ago

circe-combine-routers v0.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

circe-combine-routers 合并路由对象

安装

NPM

使用

import * as Koa from 'koa'
import * as Router from 'koa-router'
import * as checker from 'circe-combine-routers'

const app = new Koa()
const userRouter = new Router()
const postRouter = new Router()

app.use(combineRouters([userRouter, postRouter]))

API

function combineRoutes (routers: Router[], mounted?: string): Koa.Middleware

  • routes 路由对象数组
  • mount? 路由前缀
0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago