Skip to content

Commit

Permalink
Version endpoint in HomeController (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinothamar authored Jan 7, 2025
1 parent 18d4c84 commit 35bfbee
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Controllers/HomeController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,13 @@ public async Task<IActionResult> Index()
return View(model);
}

[AllowAnonymous]
[HttpGet("/Home/Localtest/Version")]
public IActionResult Version()
{
return Ok("1");
}

[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
public IActionResult Error()
{
Expand Down

0 comments on commit 35bfbee

Please sign in to comment.