diff --git a/backend/src/Web/Pages/Error.cshtml b/backend/src/Web/Pages/Error.cshtml deleted file mode 100644 index 6f92b95..0000000 --- a/backend/src/Web/Pages/Error.cshtml +++ /dev/null @@ -1,26 +0,0 @@ -@page -@model ErrorModel -@{ - ViewData["Title"] = "Error"; -} - -

Error.

-

An error occurred while processing your request.

- -@if (Model.ShowRequestId) -{ -

- Request ID: @Model.RequestId -

-} - -

Development Mode

-

- Swapping to the Development environment displays detailed information about the error that occurred. -

-

- The Development environment shouldn't be enabled for deployed applications. - It can result in displaying sensitive information from exceptions to end users. - For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development - and restarting the app. -

diff --git a/backend/src/Web/Pages/Error.cshtml.cs b/backend/src/Web/Pages/Error.cshtml.cs deleted file mode 100644 index ff5eba0..0000000 --- a/backend/src/Web/Pages/Error.cshtml.cs +++ /dev/null @@ -1,25 +0,0 @@ -using System.Diagnostics; -using Microsoft.AspNetCore.Mvc; -using Microsoft.AspNetCore.Mvc.RazorPages; - -namespace Hutopy.Web.Pages; - -[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)] -public class ErrorModel : PageModel -{ - private readonly ILogger _logger; - - public ErrorModel(ILogger logger) - { - _logger = logger; - } - - public string? RequestId { get; set; } - - public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); - - public void OnGet() - { - RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier; - } -} diff --git a/backend/src/Web/Pages/Shared/_LoginPartial.cshtml b/backend/src/Web/Pages/Shared/_LoginPartial.cshtml deleted file mode 100644 index ab55a54..0000000 --- a/backend/src/Web/Pages/Shared/_LoginPartial.cshtml +++ /dev/null @@ -1,37 +0,0 @@ -@using Hutopy.Web.Features.Users -@using Microsoft.AspNetCore.Identity -@using Microsoft.AspNetCore.Mvc.TagHelpers -@using IdentityUser = Hutopy.Web.Features.Users.IdentityUser -@inject SignInManager SignInManager - -@{ - string? returnUrl = null; - var query = ViewContext.HttpContext.Request.Query; - if (query.ContainsKey("returnUrl")) - { - returnUrl = query["returnUrl"]; - } -} - - diff --git a/backend/src/Web/Pages/_ViewImports.cshtml b/backend/src/Web/Pages/_ViewImports.cshtml deleted file mode 100644 index 315c2e2..0000000 --- a/backend/src/Web/Pages/_ViewImports.cshtml +++ /dev/null @@ -1,3 +0,0 @@ -@using Hutopy.Web -@namespace Hutopy.Web.Pages -@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers diff --git a/backend/src/Web/Program.cs b/backend/src/Web/Program.cs index 511695a..398cc95 100644 --- a/backend/src/Web/Program.cs +++ b/backend/src/Web/Program.cs @@ -112,7 +112,6 @@ if (!app.Environment.IsDevelopment()) app.UseHealthChecks("/health"); app.UseHttpsRedirection(); -app.UseStaticFiles(); if (app.Environment.IsDevelopment()) { diff --git a/backend/src/Web/wwwroot/favicon.ico b/backend/src/Web/wwwroot/favicon.ico deleted file mode 100644 index 63e859b..0000000 Binary files a/backend/src/Web/wwwroot/favicon.ico and /dev/null differ