Добавил статический контент
All checks were successful
Create and publish a Docker image / Publish image (push) Successful in 2m12s

This commit is contained in:
2025-09-06 11:49:00 +03:00
parent 347104b848
commit 125ef38cea
4 changed files with 35 additions and 6 deletions

View File

@@ -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();

View File

@@ -17,10 +17,4 @@
<PackageReference Include="Scalar.AspNetCore" Version="2.7.2" />
</ItemGroup>
<ItemGroup>
<Content Include="..\.dockerignore">
<Link>.dockerignore</Link>
</Content>
</ItemGroup>
</Project>

View File

@@ -0,0 +1,26 @@
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><text y='50%' x='50%' text-anchor='middle' dominant-baseline='central' font-size='48'>🩼</text></svg>">
<title>API Расписания</title>
<style>
body {
margin: 0;
padding: 0;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background: #fff;
}
img {
height: auto;
}
</style>
</head>
<body>
<img src="/main.jpg" alt="Вот так">
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 113 KiB