diff --git a/CFLookup/ApiController.cs b/CFLookup/ApiController.cs index f3b5ede..cde9b04 100644 --- a/CFLookup/ApiController.cs +++ b/CFLookup/ApiController.cs @@ -41,5 +41,25 @@ public async Task GetSlugProject(string game, string category, st return NotFound(); } } + + [HttpGet("/{projectId}.json")] + public async Task GetProject(int projectId) + { + try + { + var project = await SharedMethods.SearchModAsync(_redis, _cfApiClient, projectId); + + if (project == null) + { + return NotFound(); + } + + return new JsonResult(project); + } + catch + { + return NotFound(); + } + } } }