feat(ocelot.json): Aktualisierung der ocelot.json-Routen für verbesserte Weiterleitung und Frontend-Integration
- Aktualisierte bestehende Routen für Swagger und API-Endpunkte
- Ersetzte /swagger/{route} durch /swagger/auth/{route} für den Auth-Dienst
- Modifizierter Routenabgleich zur Unterstützung verschachtelter Routen (z. B. /api/{route1}/{route2})
- Hinzufügen von Routen für die Frontend-Angular-Anwendung, die auf Port 4200 läuft
This commit is contained in:
parent
97a20fdb8f
commit
a6140cab92
@ -15,7 +15,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"DownstreamPathTemplate": "/swagger/{route}",
|
||||
"DownstreamPathTemplate": "/swagger/auth/{route}",
|
||||
"DownstreamScheme": "https",
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
@ -64,18 +64,6 @@
|
||||
"UpstreamPathTemplate": "/api/Auth/logout",
|
||||
"UpstreamhttpsMethod": [ "Post" ]
|
||||
},
|
||||
{
|
||||
"DownstreamPathTemplate": "/api/Auth/user",
|
||||
"DownstreamScheme": "https",
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
"Host": "localhost",
|
||||
"Port": 7103
|
||||
}
|
||||
],
|
||||
"UpstreamPathTemplate": "/api/Auth/user",
|
||||
"UpstreamhttpsMethod": [ "Get" ]
|
||||
},
|
||||
{
|
||||
"DownstreamPathTemplate": "/api/{route}",
|
||||
"DownstreamScheme": "https",
|
||||
@ -94,7 +82,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"DownstreamPathTemplate": "/api/{route}/{id}",
|
||||
"DownstreamPathTemplate": "/api/{route1}/{route2}",
|
||||
"DownstreamScheme": "https",
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
@ -102,9 +90,62 @@
|
||||
"Port": 7103
|
||||
}
|
||||
],
|
||||
"UpstreamPathTemplate": "/api/{route}{id}",
|
||||
"UpstreamPathTemplate": "/api/{route1}/{route2}",
|
||||
"UpstreamhttpsMethod": [
|
||||
"Get",
|
||||
"Post",
|
||||
"Put",
|
||||
"Delete"
|
||||
]
|
||||
},
|
||||
{
|
||||
"DownstreamPathTemplate": "/",
|
||||
"DownstreamScheme": "http",
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
"Host": "localhost",
|
||||
"Port": 4200
|
||||
}
|
||||
],
|
||||
"UpstreamPathTemplate": "/",
|
||||
"UpstreamhttpsMethod": [
|
||||
"Get",
|
||||
"Post",
|
||||
"Put",
|
||||
"Delete"
|
||||
]
|
||||
},
|
||||
{
|
||||
"DownstreamPathTemplate": "/{route}",
|
||||
"DownstreamScheme": "http",
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
"Host": "localhost",
|
||||
"Port": 4200
|
||||
}
|
||||
],
|
||||
"UpstreamPathTemplate": "/{route}",
|
||||
"UpstreamhttpsMethod": [
|
||||
"Get",
|
||||
"Post",
|
||||
"Put",
|
||||
"Delete"
|
||||
]
|
||||
},
|
||||
{
|
||||
"DownstreamPathTemplate": "/{route1}/{route2}",
|
||||
"DownstreamScheme": "http",
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
"Host": "localhost",
|
||||
"Port": 4200
|
||||
}
|
||||
],
|
||||
"UpstreamPathTemplate": "/{route1}/{route2}",
|
||||
"UpstreamhttpsMethod": [
|
||||
"Get",
|
||||
"Post",
|
||||
"Put",
|
||||
"Delete"
|
||||
]
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user