// 路由配置,只需写控制器类和方法名 const routes = [ { method: 'GET', path: '/', controller: 'index.index' }, ]; export default routes