Добавил статический контент
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				Create and publish a Docker image / Publish image (push) Successful in 2m12s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	Create and publish a Docker image / Publish image (push) Successful in 2m12s
				
			This commit is contained in:
		| @@ -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(); | ||||
|   | ||||
| @@ -17,10 +17,4 @@ | ||||
|         <PackageReference Include="Scalar.AspNetCore" Version="2.7.2" /> | ||||
|     </ItemGroup> | ||||
|  | ||||
|     <ItemGroup> | ||||
|       <Content Include="..\.dockerignore"> | ||||
|         <Link>.dockerignore</Link> | ||||
|       </Content> | ||||
|     </ItemGroup> | ||||
|  | ||||
| </Project> | ||||
|   | ||||
							
								
								
									
										26
									
								
								SfeduSchedule/wwwroot/index.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								SfeduSchedule/wwwroot/index.html
									
									
									
									
									
										Normal 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> | ||||
							
								
								
									
										
											BIN
										
									
								
								SfeduSchedule/wwwroot/main.jpg
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								SfeduSchedule/wwwroot/main.jpg
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 113 KiB | 
		Reference in New Issue
	
	Block a user