mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-15 05:10:47 +08:00
17 lines
381 B
JavaScript
17 lines
381 B
JavaScript
import koaRouter from 'koa-router'
|
|
import interfaceController from './controllers/interface'
|
|
|
|
let router = koaRouter();
|
|
|
|
const interface_PREFIX = {
|
|
interface: '/interface/',
|
|
user: '/user/'
|
|
};
|
|
|
|
router.get ( interface_PREFIX.interface + 'add', interfaceController.add)
|
|
.get ( interface_PREFIX.interface + 'list', interfaceController.list)
|
|
|
|
|
|
|
|
|
|
module.exports = router |