mirror of
https://github.com/Such-Software/adaptive-multi-protocol-gateway.git
synced 2026-10-17 07:31:32 +02:00
Add route catalog manifest generator
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"default_tier": "interactive-lite",
|
||||
"deny_routes": [
|
||||
"/admin/*",
|
||||
"/api/internal/*",
|
||||
"/webhooks/*"
|
||||
],
|
||||
"routes": [
|
||||
{
|
||||
"name": "play",
|
||||
"method": "GET",
|
||||
"path": "/play/*"
|
||||
},
|
||||
{
|
||||
"name": "checkout",
|
||||
"method": "POST",
|
||||
"path": "/checkout/*",
|
||||
"tier": "transactional",
|
||||
"identity": "http-session",
|
||||
"payments": "server-invoice"
|
||||
},
|
||||
{
|
||||
"name": "live",
|
||||
"method": "GET",
|
||||
"path": "/live/*",
|
||||
"tier": "realtime",
|
||||
"identity": "http-session",
|
||||
"realtime": true
|
||||
},
|
||||
{
|
||||
"name": "admin",
|
||||
"method": "GET",
|
||||
"path": "/admin/*",
|
||||
"tier": "internal",
|
||||
"public_allowed": false
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,5 +1,4 @@
|
||||
{
|
||||
"schema": "ampg.route-manifest.v1",
|
||||
"default_tier": "interactive-lite",
|
||||
"deny_routes": [
|
||||
"/admin/*",
|
||||
@@ -11,21 +10,22 @@
|
||||
"match": "/play/*"
|
||||
},
|
||||
{
|
||||
"match": "/checkout/*",
|
||||
"tier": "transactional",
|
||||
"identity": "http-session",
|
||||
"payments": "server-invoice"
|
||||
"match": "/checkout/*",
|
||||
"payments": "server-invoice",
|
||||
"tier": "transactional"
|
||||
},
|
||||
{
|
||||
"match": "/live/*",
|
||||
"tier": "realtime",
|
||||
"identity": "http-session",
|
||||
"realtime": true
|
||||
"match": "/live/*",
|
||||
"realtime": true,
|
||||
"tier": "realtime"
|
||||
},
|
||||
{
|
||||
"match": "/admin/*",
|
||||
"tier": "internal",
|
||||
"public_allowed": false
|
||||
"public_allowed": false,
|
||||
"tier": "internal"
|
||||
}
|
||||
]
|
||||
],
|
||||
"schema": "ampg.route-manifest.v1"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user