mirror of
https://github.com/cupcakearmy/koa-router.git
synced 2024-12-22 08:06:27 +00:00
Docs fixes
This commit is contained in:
parent
5638465101
commit
0eb643f5da
@ -9,12 +9,12 @@ const
|
||||
|
||||
const
|
||||
app = new Koa(),
|
||||
port = 3001
|
||||
port = 3000
|
||||
|
||||
app.use(router(_ => {
|
||||
_.get('/user/:user/', (c, n) => {
|
||||
c.body = c.request.param['user']
|
||||
// GET /user/foo/ => 'foo'
|
||||
_.get('/user/:user', (c, n) => {
|
||||
c.body = c.request.params['user']
|
||||
// GET /user/foo => 'foo'
|
||||
})
|
||||
}))
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "cca-koa-router",
|
||||
"version": "0.1.1",
|
||||
"version": "0.1.2",
|
||||
"description": "Koa Router",
|
||||
"main": "Router.js",
|
||||
"repository": {
|
||||
|
Loading…
Reference in New Issue
Block a user