mirror of
https://github.com/cupcakearmy/koa-cookie.git
synced 2024-12-22 16:16:29 +00:00
Update Readme
This commit is contained in:
parent
039b7fb6d0
commit
57f260c1bb
@ -5,7 +5,7 @@ Koa Cookie Utility
|
|||||||
```javascript
|
```javascript
|
||||||
const
|
const
|
||||||
Koa = require('koa'),
|
Koa = require('koa'),
|
||||||
router = require('koa-simple-router'),
|
router = require('koa-simple-router'),
|
||||||
cookie = require('cca-koa-cookie')
|
cookie = require('cca-koa-cookie')
|
||||||
|
|
||||||
const
|
const
|
||||||
@ -13,7 +13,7 @@ const
|
|||||||
port = 3000
|
port = 3000
|
||||||
|
|
||||||
// Parse Parameters
|
// Parse Parameters
|
||||||
app.use(require(cookie))
|
app.use(cookie)
|
||||||
|
|
||||||
app.use(router({}, _ => {
|
app.use(router({}, _ => {
|
||||||
_.get('/set', (c, n) => {
|
_.get('/set', (c, n) => {
|
||||||
|
@ -3,9 +3,6 @@
|
|||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"description": "Cookie Parser and Setter for Koa",
|
"description": "Cookie Parser and Setter for Koa",
|
||||||
"main": "Cookie.js",
|
"main": "Cookie.js",
|
||||||
"scripts": {
|
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
|
||||||
},
|
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/CupCakeArmy/koa-cookie.git"
|
"url": "git+https://github.com/CupCakeArmy/koa-cookie.git"
|
||||||
|
Loading…
Reference in New Issue
Block a user