Added Resource path in webstatus UI when deploying with K8S Added Liveness healthChecks Updated k8s healthcheck configuration
28 lines
622 B
C#
28 lines
622 B
C#
using Microsoft.AspNetCore.Mvc;
|
|
using Microsoft.Extensions.Configuration;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace WebStatus.Controllers
|
|
{
|
|
public class HomeController : Controller
|
|
{
|
|
private IConfiguration _configuration;
|
|
|
|
public HomeController(IConfiguration configuration)
|
|
{
|
|
_configuration = configuration;
|
|
}
|
|
|
|
public IActionResult Index()
|
|
{
|
|
var basePath = _configuration["PATH_BASE"];
|
|
return Redirect($"{basePath}/hc-ui");
|
|
}
|
|
|
|
public IActionResult Error()
|
|
{
|
|
return View();
|
|
}
|
|
}
|
|
}
|