mirror of
https://github.com/chylex/Minecraft-Phantom-Panel.git
synced 2025-08-16 12:31:43 +02:00
.config
.run
.workdir
Agent
Common
Docker
Server
Phantom.Server
Phantom.Server.Database
Phantom.Server.Database.Postgres
Phantom.Server.Rpc
Phantom.Server.Services
Phantom.Server.Web
Layout
MainLayout.razor
NavMenu.razor
NavMenu.razor.css
NavMenuItem.razor
NavMenuItem.razor.css
_Error.cshtml
_Error.cshtml.cs
_Host.cshtml
_Layout.cshtml
Pages
Shared
wwwroot
App.razor
Configuration.cs
Launcher.cs
Phantom.Server.Web.csproj
_Imports.razor
appsettings.json
Phantom.Server.Web.Bootstrap
Phantom.Server.Web.Components
Utils
.gitattributes
.gitignore
AddMigration.bat
AddMigration.sh
PhantomPanel.sln
global.json
18 lines
478 B
C#
18 lines
478 B
C#
using System.Diagnostics;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using Microsoft.AspNetCore.Mvc.RazorPages;
|
|
|
|
namespace Phantom.Server.Web.Layout;
|
|
|
|
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
|
|
[IgnoreAntiforgeryToken]
|
|
public class ErrorModel : PageModel {
|
|
public string? RequestId { get; set; }
|
|
|
|
public ErrorModel(ILogger<ErrorModel> logger) {}
|
|
|
|
public void OnGet() {
|
|
RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier;
|
|
}
|
|
}
|