Update project structure
This commit is contained in:
28
WebAPI/Controllers/PingController.cs
Normal file
28
WebAPI/Controllers/PingController.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using Google.Apis.Auth;
|
||||
using Google.Apis.Http;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Identity.Client.Platforms.Features.DesktopOs.Kerberos;
|
||||
using Microsoft.IdentityModel.Tokens;
|
||||
using System.Configuration;
|
||||
using System.IdentityModel.Tokens.Jwt;
|
||||
using System.Security.Claims;
|
||||
using System.Text;
|
||||
using WebAPI.Models;
|
||||
|
||||
namespace WebAPI.Controllers
|
||||
{
|
||||
[ApiController]
|
||||
[Route("api/[controller]")]
|
||||
[Authorize]
|
||||
public class PingController : Controller
|
||||
{
|
||||
[HttpGet]
|
||||
[Route("Ping")]
|
||||
public IActionResult Ping()
|
||||
{
|
||||
return Ok(new { data = "Pong" });
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user