How to use koa-router.routes:
GitHub: charliegogh/vue-admin
79 80 81 82 83 84
'', 'pid') } id && ctx.success(data) }) module.exports = router.routes()
How to use koa-router.get:
173 174 175 176 177 178 179 180 181 182
this.body = {code: 0, data: arr}; } }); // proxy api router.get('/api/foo/bar', proxy({url: 'http://foo.bar.com'})); } ``` ## webpack资源管理
120
0
212
See more examples