chore: 优化代码
This commit is contained in:
@ -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");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -19,6 +19,7 @@ public class Program
|
|||||||
var app = await ApplicationBuilderHelper
|
var app = await ApplicationBuilderHelper
|
||||||
.BuildApplicationAsync<KonSoftAuthServerModule>(args);
|
.BuildApplicationAsync<KonSoftAuthServerModule>(args);
|
||||||
await app.InitializeApplicationAsync();
|
await app.InitializeApplicationAsync();
|
||||||
|
app.MapGet("/heath", () => "Online");
|
||||||
await app.RunAsync();
|
await app.RunAsync();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
@ -23,6 +23,7 @@ try
|
|||||||
var app = builder.Build();
|
var app = builder.Build();
|
||||||
await app.InitializeApplicationAsync();
|
await app.InitializeApplicationAsync();
|
||||||
app.MapReverseProxy();
|
app.MapReverseProxy();
|
||||||
|
app.MapGet("/heath", () => "Online");
|
||||||
await app.RunAsync();
|
await app.RunAsync();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
@ -9,10 +9,4 @@ public class HomeController : AbpController
|
|||||||
{
|
{
|
||||||
return Redirect("~/swagger");
|
return Redirect("~/swagger");
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpGet("health")]
|
|
||||||
public ActionResult Health()
|
|
||||||
{
|
|
||||||
return Ok("online");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@ -13,6 +13,7 @@ try
|
|||||||
var app = await ApplicationBuilderHelper
|
var app = await ApplicationBuilderHelper
|
||||||
.BuildApplicationAsync<AdminHttpApiHostModule>(args);
|
.BuildApplicationAsync<AdminHttpApiHostModule>(args);
|
||||||
await app.InitializeApplicationAsync();
|
await app.InitializeApplicationAsync();
|
||||||
|
app.MapGet("/heath", () => "Online");
|
||||||
await app.RunAsync();
|
await app.RunAsync();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
@ -9,11 +9,4 @@ public class HomeController : AbpController
|
|||||||
{
|
{
|
||||||
return Redirect("~/swagger");
|
return Redirect("~/swagger");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
[HttpGet("health")]
|
|
||||||
public ActionResult Health()
|
|
||||||
{
|
|
||||||
return Ok("online");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@ -9,11 +9,4 @@ public class HomeController : AbpController
|
|||||||
{
|
{
|
||||||
return Redirect("~/swagger");
|
return Redirect("~/swagger");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
[HttpGet("health")]
|
|
||||||
public ActionResult Health()
|
|
||||||
{
|
|
||||||
return Ok("online");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@ -9,11 +9,4 @@ public class HomeController : AbpController
|
|||||||
{
|
{
|
||||||
return Redirect("~/swagger");
|
return Redirect("~/swagger");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
[HttpGet("health")]
|
|
||||||
public ActionResult Health()
|
|
||||||
{
|
|
||||||
return Ok("online");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@ -9,11 +9,4 @@ public class HomeController : AbpController
|
|||||||
{
|
{
|
||||||
return Redirect("~/swagger");
|
return Redirect("~/swagger");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
[HttpGet("health")]
|
|
||||||
public ActionResult Health()
|
|
||||||
{
|
|
||||||
return Ok("online");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@ -1,4 +1,5 @@
|
|||||||
using KonSoft.Shared.Localization;
|
using KonSoft.Shared.Localization;
|
||||||
|
using Volo.Abp;
|
||||||
using Volo.Abp.AspNetCore.Serilog;
|
using Volo.Abp.AspNetCore.Serilog;
|
||||||
using Volo.Abp.Modularity;
|
using Volo.Abp.Modularity;
|
||||||
using Volo.Abp.MultiTenancy;
|
using Volo.Abp.MultiTenancy;
|
||||||
|
|||||||
Reference in New Issue
Block a user