Version: NextWebControllerGenerator <Router>
Methods
- createRouter(routerOptions: any): Router
- generateKoaController(routeInfo: RouterInfo): (ctx: any, next: any) => Promise<void>
- loadMidwayController(routerHandler?: (newRouter: Router) => void): Promise<void>
wrap controller string to middleware function