- Request ID: @Model.RequestId
-
- 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/SiNan.API/SiNan.API/Pages/Error.cshtml.cs b/SiNan.API/SiNan.API/Pages/Error.cshtml.cs deleted file mode 100644 index 2222346..0000000 --- a/SiNan.API/SiNan.API/Pages/Error.cshtml.cs +++ /dev/null @@ -1,27 +0,0 @@ -using Microsoft.AspNetCore.Mvc; -using Microsoft.AspNetCore.Mvc.RazorPages; -using System.Diagnostics; - -namespace SiNan.API.Pages -{ - [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)] - [IgnoreAntiforgeryToken] - public class ErrorModel : PageModel - { - public string? RequestId { get; set; } - - public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); - - private readonly ILoggerLearn about building Web apps with ASP.NET Core.
-Use this page to detail your site's privacy policy.
diff --git a/SiNan.API/SiNan.API/Pages/Privacy.cshtml.cs b/SiNan.API/SiNan.API/Pages/Privacy.cshtml.cs deleted file mode 100644 index dd5ae14..0000000 --- a/SiNan.API/SiNan.API/Pages/Privacy.cshtml.cs +++ /dev/null @@ -1,19 +0,0 @@ -using Microsoft.AspNetCore.Mvc; -using Microsoft.AspNetCore.Mvc.RazorPages; - -namespace SiNan.API.Pages -{ - public class PrivacyModel : PageModel - { - private readonly ILogger