Fix ping route
This commit is contained in:
parent
cad74115e1
commit
4ae2e273ff
1 changed files with 4 additions and 1 deletions
|
@ -2,8 +2,11 @@
|
||||||
|
|
||||||
namespace LANCommander.Controllers.Api
|
namespace LANCommander.Controllers.Api
|
||||||
{
|
{
|
||||||
public class PingController : Controller
|
[Route("api/[controller]")]
|
||||||
|
[ApiController]
|
||||||
|
public class PingController : ControllerBase
|
||||||
{
|
{
|
||||||
|
[HttpGet]
|
||||||
public IActionResult Index()
|
public IActionResult Index()
|
||||||
{
|
{
|
||||||
return Ok("Pong!");
|
return Ok("Pong!");
|
||||||
|
|
Loading…
Add table
Reference in a new issue