diff --git a/ProjectLighthouse.Servers.API/Controllers/StatusController.cs b/ProjectLighthouse.Servers.API/Controllers/StatusController.cs new file mode 100644 index 00000000..fcd91964 --- /dev/null +++ b/ProjectLighthouse.Servers.API/Controllers/StatusController.cs @@ -0,0 +1,12 @@ +using Microsoft.AspNetCore.Mvc; + +namespace LBPUnion.ProjectLighthouse.Servers.API.Controllers; + +[ApiController] +[Route("/api/v1")] +[Produces("application/json")] +public class StatusController : ControllerBase +{ + [HttpGet("status")] + public IActionResult GetStatus() => this.Ok(); +} \ No newline at end of file diff --git a/ProjectLighthouse.Servers.API/ProjectLighthouse.Servers.API.csproj b/ProjectLighthouse.Servers.API/ProjectLighthouse.Servers.API.csproj index fca0d2c5..b8d70527 100644 --- a/ProjectLighthouse.Servers.API/ProjectLighthouse.Servers.API.csproj +++ b/ProjectLighthouse.Servers.API/ProjectLighthouse.Servers.API.csproj @@ -15,32 +15,32 @@ - + - + Always - + Always - + Always - + Always - - - - + + + + diff --git a/ProjectLighthouse.Servers.GameServer/Controllers/StatusController.cs b/ProjectLighthouse.Servers.GameServer/Controllers/StatusController.cs new file mode 100644 index 00000000..2e108e1e --- /dev/null +++ b/ProjectLighthouse.Servers.GameServer/Controllers/StatusController.cs @@ -0,0 +1,12 @@ +using Microsoft.AspNetCore.Mvc; + +namespace LBPUnion.ProjectLighthouse.Servers.GameServer.Controllers; + +[ApiController] +[Route("/LITTLEBIGPLANETPS3_XML")] +[Produces("application/json")] +public class StatusController : ControllerBase +{ + [HttpGet("status")] + public IActionResult GetStatus() => this.Ok(); +} \ No newline at end of file diff --git a/ProjectLighthouse.Servers.GameServer/ProjectLighthouse.Servers.GameServer.csproj b/ProjectLighthouse.Servers.GameServer/ProjectLighthouse.Servers.GameServer.csproj index 2636686a..8bc55451 100644 --- a/ProjectLighthouse.Servers.GameServer/ProjectLighthouse.Servers.GameServer.csproj +++ b/ProjectLighthouse.Servers.GameServer/ProjectLighthouse.Servers.GameServer.csproj @@ -10,32 +10,32 @@ - + - + Always - + Always - + Always - + Always - - - - + + + + diff --git a/ProjectLighthouse.Servers.Website/Controllers/StatusController.cs b/ProjectLighthouse.Servers.Website/Controllers/StatusController.cs new file mode 100644 index 00000000..3d36329e --- /dev/null +++ b/ProjectLighthouse.Servers.Website/Controllers/StatusController.cs @@ -0,0 +1,12 @@ +using Microsoft.AspNetCore.Mvc; + +namespace LBPUnion.ProjectLighthouse.Servers.Website.Controllers; + +[ApiController] +[Route("/")] +[Produces("application/json")] +public class StatusController : ControllerBase +{ + [HttpGet("status")] + public IActionResult GetStatus() => this.Ok(); +} \ No newline at end of file