cool-admin-api/app/router.ts

7 lines
145 B
TypeScript

import { Application } from 'egg';
import { initRouter } from 'egg-cool-router';
export default (app: Application) => {
initRouter(app);
};