chore: 优化代码
This commit is contained in:
@ -9,10 +9,4 @@ public class HomeController : AbpController
|
||||
{
|
||||
return Redirect("~/swagger");
|
||||
}
|
||||
|
||||
[HttpGet("health")]
|
||||
public ActionResult Health()
|
||||
{
|
||||
return Ok("online");
|
||||
}
|
||||
}
|
||||
@ -13,6 +13,7 @@ try
|
||||
var app = await ApplicationBuilderHelper
|
||||
.BuildApplicationAsync<AdminHttpApiHostModule>(args);
|
||||
await app.InitializeApplicationAsync();
|
||||
app.MapGet("/heath", () => "Online");
|
||||
await app.RunAsync();
|
||||
|
||||
return 0;
|
||||
|
||||
@ -9,11 +9,4 @@ public class HomeController : AbpController
|
||||
{
|
||||
return Redirect("~/swagger");
|
||||
}
|
||||
|
||||
|
||||
[HttpGet("health")]
|
||||
public ActionResult Health()
|
||||
{
|
||||
return Ok("online");
|
||||
}
|
||||
}
|
||||
@ -9,11 +9,4 @@ public class HomeController : AbpController
|
||||
{
|
||||
return Redirect("~/swagger");
|
||||
}
|
||||
|
||||
|
||||
[HttpGet("health")]
|
||||
public ActionResult Health()
|
||||
{
|
||||
return Ok("online");
|
||||
}
|
||||
}
|
||||
@ -9,11 +9,4 @@ public class HomeController : AbpController
|
||||
{
|
||||
return Redirect("~/swagger");
|
||||
}
|
||||
|
||||
|
||||
[HttpGet("health")]
|
||||
public ActionResult Health()
|
||||
{
|
||||
return Ok("online");
|
||||
}
|
||||
}
|
||||
@ -9,11 +9,4 @@ public class HomeController : AbpController
|
||||
{
|
||||
return Redirect("~/swagger");
|
||||
}
|
||||
|
||||
|
||||
[HttpGet("health")]
|
||||
public ActionResult Health()
|
||||
{
|
||||
return Ok("online");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user