Compare commits

...

4 Commits

Author SHA1 Message Date
Developer 02
8a8f77c4d5 chore: port aktualisiert. 2025-03-24 14:55:35 +01:00
Developer 02
08e3cdddb0 chore: IIS-Profil zu git hinzufügen, um es für Zweige anpassen zu können 2025-03-11 17:14:07 +01:00
Developer 02
e1bd477753 refactor(ocelet.json): konfiguriert 2025-03-11 17:08:53 +01:00
Developer 02
174338af5d Refaktor: Aktualisierung der Endpunktzuordnung auf moderne Syntax zur verbesserten Klarheit 2025-03-11 16:55:34 +01:00
3 changed files with 40 additions and 29 deletions

View File

@ -24,10 +24,7 @@ try
app.UseAuthorization();
// Use Ocelot middleware in an appropriate way
app.UseEndpoints(endpoints =>
{
endpoints.MapControllers();
});
app.MapControllers();
app.UseOcelot().Wait();

View File

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project>
<PropertyGroup>
<WebPublishMethod>Package</WebPublishMethod>
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
<LastUsedPlatform>Any CPU</LastUsedPlatform>
<SiteUrlToLaunchAfterPublish />
<LaunchSiteAfterPublish>true</LaunchSiteAfterPublish>
<ExcludeApp_Data>false</ExcludeApp_Data>
<ProjectGuid>329f45bf-4c79-4a7b-9086-d6205617aa42</ProjectGuid>
<DesktopBuildPackageLocation>P:\Install .Net\0 DD - Smart UP\Gateway\WorkFlow\$(Version)\$(Version).zip</DesktopBuildPackageLocation>
<PackageAsSingleFile>true</PackageAsSingleFile>
<DeployIisAppPath>Gateway</DeployIisAppPath>
<_TargetId>IISWebDeployPackage</_TargetId>
</PropertyGroup>
</Project>

View File

@ -1,19 +1,5 @@
{
"Routes": [
{
"DownstreamPathTemplate": "/swagger/{route}",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 9090
}
],
"UpstreamPathTemplate": "/swagger/auth/{route}",
"UpstreamHttpMethod": [
"Get"
]
},
{
"DownstreamPathTemplate": "/swagger/{route}",
"DownstreamScheme": "http",
@ -29,22 +15,33 @@
]
},
{
"DownstreamPathTemplate": "/api/Auth/{route}",
"DownstreamPathTemplate": "/swagger/{route}",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 8088
"Port": 9090
}
],
"UpstreamPathTemplate": "/api/Auth/{route}",
"UpstreamPathTemplate": "/swagger/auth/{route}",
"UpstreamHttpMethod": [
"Get",
"Post"
"Get"
]
},
{
"DownstreamPathTemplate": "/api/Auth/login/{id}",
"DownstreamPathTemplate": "/api/Auth/work-flow?cookie=false",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 9090
}
],
"UpstreamPathTemplate": "/api/Auth",
"UpstreamHttpMethod": [ "Post" ]
},
{
"DownstreamPathTemplate": "/api/Auth/check",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
@ -52,10 +49,8 @@
"Port": 8088
}
],
"UpstreamPathTemplate": "/api/Auth/login/{id}",
"UpstreamHttpMethod": [
"Post"
]
"UpstreamPathTemplate": "/api/Auth/check",
"UpstreamHttpMethod": [ "Post" ]
},
{
"DownstreamPathTemplate": "/api/{route}",
@ -91,6 +86,6 @@
}
],
"GlobalConfiguration": {
"BaseUrl": "https://localhost:7052"
"BaseUrl": "https://localhost:8443"
}
}