Refactored project to module structure
This commit is contained in:
16
Moonlight.Api/Shared/PingController.cs
Normal file
16
Moonlight.Api/Shared/PingController.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace Moonlight.Api.Shared;
|
||||
|
||||
[ApiController]
|
||||
[Route("api/ping")]
|
||||
public class PingController : Controller
|
||||
{
|
||||
[HttpGet]
|
||||
[AllowAnonymous]
|
||||
public IActionResult Get()
|
||||
{
|
||||
return Ok("Pong");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user