File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed
Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -7,4 +7,15 @@ Add express cookie-parser middleware to express-gateway
77plugins :
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+ ` ` `
Original file line number Diff line number Diff line change 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" : {
You can’t perform that action at this time.
0 commit comments