How to use koa-router

Comprehensive koa-router code examples:

How to use koa-router.routes:

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资源管理