Skip to content

Commit c86e063

Browse files
committed
chore
1 parent 960992a commit c86e063

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,15 @@ Add express cookie-parser middleware to express-gateway
77
plugins:
88
express-gateway-plugin-cookie-parser:
99
package: 'express-gateway-plugin-cookie-parser'
10-
```
10+
```
11+
12+
```yaml
13+
# gateway.config.yml
14+
pipelines:
15+
api:
16+
policies:
17+
- proxy:
18+
- condition:
19+
name: expression
20+
expression: "req.cookies.username === 'admin'"
21+
```

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
"name": "express-gateway-plugin-cookie-parser",
33
"version": "1.0.0",
44
"main": "manifest.js",
5-
"repository": "git@github.com:ndthanhdev/express-gateway-plugin-cookie-parser.git",
5+
"repository": {
6+
"type": "git",
7+
"url": "https://github.com/ndthanhdev/express-gateway-plugin-cookie-parser.git"
8+
},
69
"author": "ndthanhdev <ndthanhdev@outlook.com>",
710
"license": "MIT",
811
"devDependencies": {

0 commit comments

Comments
 (0)