diff --git a/SfeduSchedule/Program.cs b/SfeduSchedule/Program.cs index d726649..ccb4c2a 100644 --- a/SfeduSchedule/Program.cs +++ b/SfeduSchedule/Program.cs @@ -95,6 +95,15 @@ app.MapScalarApiReference(options => app.UseAuthorization(); + +app.UseStaticFiles(); + +app.MapGet("/", async context => +{ + context.Response.ContentType = "text/html; charset=utf-8"; + await context.Response.SendFileAsync(Path.Combine(app.Environment.WebRootPath ?? "wwwroot", "index.html")); +}); + app.MapControllers(); app.Run(); diff --git a/SfeduSchedule/SfeduSchedule.csproj b/SfeduSchedule/SfeduSchedule.csproj index 92e0db1..3cc7d44 100644 --- a/SfeduSchedule/SfeduSchedule.csproj +++ b/SfeduSchedule/SfeduSchedule.csproj @@ -17,10 +17,4 @@ - - - .dockerignore - - - diff --git a/SfeduSchedule/wwwroot/index.html b/SfeduSchedule/wwwroot/index.html new file mode 100644 index 0000000..f566174 --- /dev/null +++ b/SfeduSchedule/wwwroot/index.html @@ -0,0 +1,26 @@ + + + + + + + API Расписания + + + + Вот так + + diff --git a/SfeduSchedule/wwwroot/main.jpg b/SfeduSchedule/wwwroot/main.jpg new file mode 100644 index 0000000..bc6f822 Binary files /dev/null and b/SfeduSchedule/wwwroot/main.jpg differ