You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
608 B
C#
27 lines
608 B
C#
|
|
namespace LaunchUrlStudy.SubSite6
|
|
{
|
|
public class Program
|
|
{
|
|
public static void Main(string[] args)
|
|
{
|
|
var builder = WebApplication.CreateBuilder(args);
|
|
|
|
// Add services to the container.
|
|
|
|
builder.Services.AddControllers();
|
|
builder.Services.AddHealthChecks();
|
|
|
|
var app = builder.Build();
|
|
|
|
app.UseAuthorization();
|
|
app.MapControllers();
|
|
|
|
//配置启动地址(支持子站点):第三方 `健康检查中间件`
|
|
app.UseHealthChecks("");
|
|
|
|
app.Run();
|
|
}
|
|
}
|
|
}
|