mirror of
https://github.com/Jetsparrow/jetherald.git
synced 2026-01-21 07:56:09 +03:00
21 lines
547 B
C#
21 lines
547 B
C#
using System.Reflection;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace JetHerald.Controllers
|
|
{
|
|
[ApiController]
|
|
public class HelloController : ControllerBase
|
|
{
|
|
[Route("api/hello")]
|
|
[HttpGet]
|
|
public object Hello()
|
|
{
|
|
return new
|
|
{
|
|
status = "OK",
|
|
server_name = "JetHerald",
|
|
server_version = Assembly.GetExecutingAssembly().GetCustomAttribute<AssemblyInformationalVersionAttribute>().InformationalVersion
|
|
};
|
|
}
|
|
}
|
|
} |