geekbot/Geekbot.net/WebApi/Status/StatusController.cs

22 lines
560 B
C#
Raw Normal View History

2018-04-30 23:44:19 +02:00
using Geekbot.net.Lib;
using Nancy;
namespace Geekbot.net.WebApi.Status
{
public class StatusController : NancyModule
{
public StatusController()
{
Get("/", args =>
{
2018-04-30 23:44:19 +02:00
var responseBody = new ApiStatusDto
{
2018-05-06 03:24:09 +02:00
GeekbotVersion = Constants.BotVersion(),
ApiVersion = Constants.ApiVersion.ToString(),
Status = "Online"
};
return Response.AsJson(responseBody);
});
}
}
}