diff --git a/src/Ghosts.Api/Areas/Animator/Controllers/Api/NpcAddressesController.cs b/src/Ghosts.Api/Areas/Animator/Controllers/Api/NpcsAddressesController.cs similarity index 97% rename from src/Ghosts.Api/Areas/Animator/Controllers/Api/NpcAddressesController.cs rename to src/Ghosts.Api/Areas/Animator/Controllers/Api/NpcsAddressesController.cs index 9e1f5471..a9d9452a 100644 --- a/src/Ghosts.Api/Areas/Animator/Controllers/Api/NpcAddressesController.cs +++ b/src/Ghosts.Api/Areas/Animator/Controllers/Api/NpcsAddressesController.cs @@ -9,7 +9,7 @@ namespace ghosts.api.Areas.Animator.Controllers.Api [ApiController] [Produces("application/json")] [Route("api/[controller]")] - public class NpcAddressesController: ControllerBase + public class NpcsAddressesController: ControllerBase { /// /// Get random addressProfile diff --git a/src/Ghosts.Api/Areas/Animator/Controllers/Api/NpcController.cs b/src/Ghosts.Api/Areas/Animator/Controllers/Api/NpcsController.cs similarity index 98% rename from src/Ghosts.Api/Areas/Animator/Controllers/Api/NpcController.cs rename to src/Ghosts.Api/Areas/Animator/Controllers/Api/NpcsController.cs index 862a5f34..3639c2a2 100644 --- a/src/Ghosts.Api/Areas/Animator/Controllers/Api/NpcController.cs +++ b/src/Ghosts.Api/Areas/Animator/Controllers/Api/NpcsController.cs @@ -18,11 +18,11 @@ namespace ghosts.api.Areas.Animator.Controllers.Api; [ApiController] [Produces("application/json")] [Route("api/[controller]")] -public class NpcController : ControllerBase +public class NpcsController : ControllerBase { private readonly ApplicationDbContext _context; - public NpcController(ApplicationDbContext context) + public NpcsController(ApplicationDbContext context) { _context = context; } diff --git a/src/Ghosts.Api/Areas/Animator/Controllers/Api/NpcEnclaveController.cs b/src/Ghosts.Api/Areas/Animator/Controllers/Api/NpcsEnclaveController.cs similarity index 97% rename from src/Ghosts.Api/Areas/Animator/Controllers/Api/NpcEnclaveController.cs rename to src/Ghosts.Api/Areas/Animator/Controllers/Api/NpcsEnclaveController.cs index 75f2a542..9f200f08 100644 --- a/src/Ghosts.Api/Areas/Animator/Controllers/Api/NpcEnclaveController.cs +++ b/src/Ghosts.Api/Areas/Animator/Controllers/Api/NpcsEnclaveController.cs @@ -20,11 +20,11 @@ namespace ghosts.api.Areas.Animator.Controllers.Api; [ApiController] [Produces("application/json")] [Route("api/[controller]/{campaign}/{enclave}")] -public class NpcEnclaveController : ControllerBase +public class NpcsEnclaveController : ControllerBase { private readonly ApplicationDbContext _context; - public NpcEnclaveController(ApplicationDbContext context) + public NpcsEnclaveController(ApplicationDbContext context) { _context = context; } diff --git a/src/Ghosts.Api/Areas/Animator/Controllers/Api/NpcGenerateController.cs b/src/Ghosts.Api/Areas/Animator/Controllers/Api/NpcsGenerateController.cs similarity index 97% rename from src/Ghosts.Api/Areas/Animator/Controllers/Api/NpcGenerateController.cs rename to src/Ghosts.Api/Areas/Animator/Controllers/Api/NpcsGenerateController.cs index 1174567c..76077a63 100644 --- a/src/Ghosts.Api/Areas/Animator/Controllers/Api/NpcGenerateController.cs +++ b/src/Ghosts.Api/Areas/Animator/Controllers/Api/NpcsGenerateController.cs @@ -24,12 +24,12 @@ namespace ghosts.api.Areas.Animator.Controllers.Api; [ApiController] [Produces("application/json")] [Route("api/[controller]")] -public class NpcGenerateController : ControllerBase +public class NpcsGenerateController : ControllerBase { private static readonly Logger _log = LogManager.GetCurrentClassLogger(); private readonly ApplicationDbContext _context; - public NpcGenerateController(ApplicationDbContext context) + public NpcsGenerateController(ApplicationDbContext context) { _context = context; } diff --git a/src/Ghosts.Api/Areas/Animator/Controllers/Api/NpcInsiderThreatController.cs b/src/Ghosts.Api/Areas/Animator/Controllers/Api/NpcsInsiderThreatController.cs similarity index 97% rename from src/Ghosts.Api/Areas/Animator/Controllers/Api/NpcInsiderThreatController.cs rename to src/Ghosts.Api/Areas/Animator/Controllers/Api/NpcsInsiderThreatController.cs index 07329da3..06cc50db 100644 --- a/src/Ghosts.Api/Areas/Animator/Controllers/Api/NpcInsiderThreatController.cs +++ b/src/Ghosts.Api/Areas/Animator/Controllers/Api/NpcsInsiderThreatController.cs @@ -22,11 +22,11 @@ namespace ghosts.api.Areas.Animator.Controllers.Api; [ApiController] [Produces("application/json")] [Route("api/[controller]")] -public class NpcInsiderThreatController : ControllerBase +public class NpcsInsiderThreatController : ControllerBase { private readonly ApplicationDbContext _context; - public NpcInsiderThreatController(ApplicationDbContext context) + public NpcsInsiderThreatController(ApplicationDbContext context) { this._context = context; } diff --git a/src/Ghosts.Api/Areas/Animator/Controllers/Api/NpcTeamController.cs b/src/Ghosts.Api/Areas/Animator/Controllers/Api/NpcsTeamController.cs similarity index 98% rename from src/Ghosts.Api/Areas/Animator/Controllers/Api/NpcTeamController.cs rename to src/Ghosts.Api/Areas/Animator/Controllers/Api/NpcsTeamController.cs index ceddbde1..f557fe3a 100644 --- a/src/Ghosts.Api/Areas/Animator/Controllers/Api/NpcTeamController.cs +++ b/src/Ghosts.Api/Areas/Animator/Controllers/Api/NpcsTeamController.cs @@ -22,12 +22,12 @@ namespace ghosts.api.Areas.Animator.Controllers.Api; [ApiController] [Produces("application/json")] [Route("api/[controller]")] -public class NpcTeamController : ControllerBase +public class NpcsTeamController : ControllerBase { private static readonly Logger _log = LogManager.GetCurrentClassLogger(); private readonly ApplicationDbContext _context; - public NpcTeamController(ApplicationDbContext context) + public NpcsTeamController(ApplicationDbContext context) { this._context = context; } diff --git a/src/Ghosts.Api/Views/Shared/_Layout.cshtml b/src/Ghosts.Api/Views/Shared/_Layout.cshtml index 55190f89..5fcbed85 100644 --- a/src/Ghosts.Api/Views/Shared/_Layout.cshtml +++ b/src/Ghosts.Api/Views/Shared/_Layout.cshtml @@ -1,5 +1,11 @@ -@using System.Net.Mime @using Ghosts.Domain.Code +@{ + var request = Context.Request; + var host = request.Host.Host; // Get the host without port + var scheme = request.Scheme; // Get the scheme (http or https) + var grafanaUrl = $"{scheme}://{host}:3000"; // Construct the URL with the new port +} + @@ -23,9 +29,6 @@ GHOSTS