diff --git a/applications/KonSoft.AuthServer/Controller/HomeController.cs b/applications/KonSoft.AuthServer/Controller/HomeController.cs deleted file mode 100644 index c1a2e1c..0000000 --- a/applications/KonSoft.AuthServer/Controller/HomeController.cs +++ /dev/null @@ -1,14 +0,0 @@ -using Microsoft.AspNetCore.Mvc; -using Volo.Abp.AspNetCore.Mvc; - -namespace KonSoft.Controller -{ - public class HomeController : AbpController - { - [HttpGet("health")] - public ActionResult Health() - { - return Ok("online"); - } - } -} diff --git a/applications/KonSoft.AuthServer/Program.cs b/applications/KonSoft.AuthServer/Program.cs index 0ae89c7..4082b51 100644 --- a/applications/KonSoft.AuthServer/Program.cs +++ b/applications/KonSoft.AuthServer/Program.cs @@ -19,6 +19,7 @@ public class Program var app = await ApplicationBuilderHelper .BuildApplicationAsync(args); await app.InitializeApplicationAsync(); + app.MapGet("/heath", () => "Online"); await app.RunAsync(); return 0; diff --git a/gateways/KonSoft.InternalGateway/Program.cs b/gateways/KonSoft.InternalGateway/Program.cs index 56e1cc6..498282b 100644 --- a/gateways/KonSoft.InternalGateway/Program.cs +++ b/gateways/KonSoft.InternalGateway/Program.cs @@ -23,6 +23,7 @@ try var app = builder.Build(); await app.InitializeApplicationAsync(); app.MapReverseProxy(); + app.MapGet("/heath", () => "Online"); await app.RunAsync(); return 0; diff --git a/microservices/KonSoft.Admin.HttpApi.Host/Controllers/HomeController.cs b/microservices/KonSoft.Admin.HttpApi.Host/Controllers/HomeController.cs index c8932d1..d815119 100644 --- a/microservices/KonSoft.Admin.HttpApi.Host/Controllers/HomeController.cs +++ b/microservices/KonSoft.Admin.HttpApi.Host/Controllers/HomeController.cs @@ -9,10 +9,4 @@ public class HomeController : AbpController { return Redirect("~/swagger"); } - - [HttpGet("health")] - public ActionResult Health() - { - return Ok("online"); - } } \ No newline at end of file diff --git a/microservices/KonSoft.Admin.HttpApi.Host/Program.cs b/microservices/KonSoft.Admin.HttpApi.Host/Program.cs index f357a71..9031414 100644 --- a/microservices/KonSoft.Admin.HttpApi.Host/Program.cs +++ b/microservices/KonSoft.Admin.HttpApi.Host/Program.cs @@ -13,6 +13,7 @@ try var app = await ApplicationBuilderHelper .BuildApplicationAsync(args); await app.InitializeApplicationAsync(); + app.MapGet("/heath", () => "Online"); await app.RunAsync(); return 0; diff --git a/microservices/KonSoft.Dispatch.HttpApi.Host/Controllers/HomeController.cs b/microservices/KonSoft.Dispatch.HttpApi.Host/Controllers/HomeController.cs index dcfc481..5f97226 100644 --- a/microservices/KonSoft.Dispatch.HttpApi.Host/Controllers/HomeController.cs +++ b/microservices/KonSoft.Dispatch.HttpApi.Host/Controllers/HomeController.cs @@ -9,11 +9,4 @@ public class HomeController : AbpController { return Redirect("~/swagger"); } - - - [HttpGet("health")] - public ActionResult Health() - { - return Ok("online"); - } } \ No newline at end of file diff --git a/microservices/KonSoft.Payment.HttpApi.Host/Controllers/HomeController.cs b/microservices/KonSoft.Payment.HttpApi.Host/Controllers/HomeController.cs index f6b393c..1480f62 100644 --- a/microservices/KonSoft.Payment.HttpApi.Host/Controllers/HomeController.cs +++ b/microservices/KonSoft.Payment.HttpApi.Host/Controllers/HomeController.cs @@ -9,11 +9,4 @@ public class HomeController : AbpController { return Redirect("~/swagger"); } - - - [HttpGet("health")] - public ActionResult Health() - { - return Ok("online"); - } } \ No newline at end of file diff --git a/microservices/KonSoft.Report.HttpApi.Host/Controllers/HomeController.cs b/microservices/KonSoft.Report.HttpApi.Host/Controllers/HomeController.cs index 6156bad..3bbf891 100644 --- a/microservices/KonSoft.Report.HttpApi.Host/Controllers/HomeController.cs +++ b/microservices/KonSoft.Report.HttpApi.Host/Controllers/HomeController.cs @@ -9,11 +9,4 @@ public class HomeController : AbpController { return Redirect("~/swagger"); } - - - [HttpGet("health")] - public ActionResult Health() - { - return Ok("online"); - } } \ No newline at end of file diff --git a/microservices/KonSoft.TenantManagement.HttpApi.Host/Controllers/HomeController.cs b/microservices/KonSoft.TenantManagement.HttpApi.Host/Controllers/HomeController.cs index 8db58ea..d11861b 100644 --- a/microservices/KonSoft.TenantManagement.HttpApi.Host/Controllers/HomeController.cs +++ b/microservices/KonSoft.TenantManagement.HttpApi.Host/Controllers/HomeController.cs @@ -9,11 +9,4 @@ public class HomeController : AbpController { return Redirect("~/swagger"); } - - - [HttpGet("health")] - public ActionResult Health() - { - return Ok("online"); - } } \ No newline at end of file diff --git a/shared/KonSoft.Shared.Hosting.AspNetCore/KonSoftSharedHostingAspNetCoreModule.cs b/shared/KonSoft.Shared.Hosting.AspNetCore/KonSoftSharedHostingAspNetCoreModule.cs index fd8588b..f121f2e 100644 --- a/shared/KonSoft.Shared.Hosting.AspNetCore/KonSoftSharedHostingAspNetCoreModule.cs +++ b/shared/KonSoft.Shared.Hosting.AspNetCore/KonSoftSharedHostingAspNetCoreModule.cs @@ -1,4 +1,5 @@ using KonSoft.Shared.Localization; +using Volo.Abp; using Volo.Abp.AspNetCore.Serilog; using Volo.Abp.Modularity; using Volo.Abp.MultiTenancy;