34 lines
693 B
C#
34 lines
693 B
C#
|
using MediatR;
|
|||
|
using Microsoft.AspNetCore.Authorization;
|
|||
|
using Microsoft.AspNetCore.Mvc;
|
|||
|
using System;
|
|||
|
|
|||
|
namespace IdentityServer.Api.Controllers
|
|||
|
{
|
|||
|
[ApiController]
|
|||
|
[Route("system")]
|
|||
|
public class SystemController : ControllerBase
|
|||
|
{
|
|||
|
private readonly IMediator _mediator;
|
|||
|
|
|||
|
public SystemController(IMediator mediator)
|
|||
|
{
|
|||
|
_mediator = mediator;
|
|||
|
}
|
|||
|
|
|||
|
[AllowAnonymous]
|
|||
|
[HttpGet("ping")]
|
|||
|
public IActionResult Ping()
|
|||
|
{
|
|||
|
return Ok($"Ping success. System datetime: {DateTime.Now}");
|
|||
|
}
|
|||
|
|
|||
|
/*
|
|||
|
Methods:
|
|||
|
/version
|
|||
|
/burn-token
|
|||
|
/burn-all-tokens
|
|||
|
*/
|
|||
|
}
|
|||
|
}
|