From b2a1d3958f233d32eacccc1db7c5e0286b3667e0 Mon Sep 17 00:00:00 2001 From: Josh Date: Thu, 23 Mar 2023 19:31:56 -0500 Subject: [PATCH] Allow head requests to status endpoints (#717) --- ProjectLighthouse.Servers.API/Controllers/StatusController.cs | 2 +- .../Controllers/StatusController.cs | 2 +- .../Controllers/StatusController.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ProjectLighthouse.Servers.API/Controllers/StatusController.cs b/ProjectLighthouse.Servers.API/Controllers/StatusController.cs index fcd91964..2d790856 100644 --- a/ProjectLighthouse.Servers.API/Controllers/StatusController.cs +++ b/ProjectLighthouse.Servers.API/Controllers/StatusController.cs @@ -7,6 +7,6 @@ namespace LBPUnion.ProjectLighthouse.Servers.API.Controllers; [Produces("application/json")] public class StatusController : ControllerBase { - [HttpGet("status")] + [AcceptVerbs("GET", "HEAD", Route = "status")] public IActionResult GetStatus() => this.Ok(); } \ No newline at end of file diff --git a/ProjectLighthouse.Servers.GameServer/Controllers/StatusController.cs b/ProjectLighthouse.Servers.GameServer/Controllers/StatusController.cs index 2e108e1e..32036b1d 100644 --- a/ProjectLighthouse.Servers.GameServer/Controllers/StatusController.cs +++ b/ProjectLighthouse.Servers.GameServer/Controllers/StatusController.cs @@ -7,6 +7,6 @@ namespace LBPUnion.ProjectLighthouse.Servers.GameServer.Controllers; [Produces("application/json")] public class StatusController : ControllerBase { - [HttpGet("status")] + [AcceptVerbs("GET", "HEAD", Route = "status")] public IActionResult GetStatus() => this.Ok(); } \ No newline at end of file diff --git a/ProjectLighthouse.Servers.Website/Controllers/StatusController.cs b/ProjectLighthouse.Servers.Website/Controllers/StatusController.cs index 3d36329e..f3eb7b3e 100644 --- a/ProjectLighthouse.Servers.Website/Controllers/StatusController.cs +++ b/ProjectLighthouse.Servers.Website/Controllers/StatusController.cs @@ -7,6 +7,6 @@ namespace LBPUnion.ProjectLighthouse.Servers.Website.Controllers; [Produces("application/json")] public class StatusController : ControllerBase { - [HttpGet("status")] + [AcceptVerbs("GET", "HEAD", Route = "status")] public IActionResult GetStatus() => this.Ok(); } \ No newline at end of file