diff --git a/src/Ngino.Server/Program.cs b/src/Ngino.Server/Program.cs index efb3368..183a87c 100644 --- a/src/Ngino.Server/Program.cs +++ b/src/Ngino.Server/Program.cs @@ -269,6 +269,11 @@ app.UseStaticFiles(); app.MapAdminEndpoints(settings); +app.MapGet("/favicon.ico", () => + Results.File( + Path.Combine(app.Environment.WebRootPath, "favicon.ico"), + "image/x-icon")); + app.MapGet("/", () => Results.Redirect("/admin")); app.MapGet(settings.StatusPath, (HttpContext context, TunnelHub hub, ServerSettings serverSettings, EmbeddingCache embeddingCache, ManagementStore managementStore) => diff --git a/src/Ngino.Server/wwwroot/favicon.ico b/src/Ngino.Server/wwwroot/favicon.ico index a533a9f..36eb36d 100644 Binary files a/src/Ngino.Server/wwwroot/favicon.ico and b/src/Ngino.Server/wwwroot/favicon.ico differ