Skip to content

Commit

Permalink
fix issue #98
Browse files Browse the repository at this point in the history
  • Loading branch information
steinho committed Dec 13, 2024
1 parent aab8478 commit 0b202b4
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions Nbic.References/Controllers/PingController.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Swashbuckle.AspNetCore.Annotations;

namespace Nbic.References.Controllers
{
[Route("api/[controller]")]
[ApiController]
[SwaggerTag("Check status and authentication")]
public class PingController : ControllerBase
{
[HttpGet]
[Route("Ping")]
public string Ping()
{
return "Ok!";
}

[HttpGet]
[Authorize("WriteAccess")]
[Route("AuthorisedPing")]
public string AuthorisedPing()
{
return "Ok!";
}
}
}

0 comments on commit 0b202b4

Please sign in to comment.