17 lines
279 B
C#
17 lines
279 B
C#
|
var builder = WebApplication.CreateBuilder(args);
|
||
|
|
||
|
// Add services to the container.
|
||
|
|
||
|
var app = builder.Build();
|
||
|
|
||
|
app.UseDefaultFiles();
|
||
|
app.UseStaticFiles();
|
||
|
|
||
|
// Configure the HTTP request pipeline.
|
||
|
|
||
|
app.UseHttpsRedirection();
|
||
|
|
||
|
app.MapFallbackToFile("/index.html");
|
||
|
|
||
|
app.Run();
|