Refaction all files into component based folders
This commit is contained in:
parent
55e152f4aa
commit
e3adf55742
102 changed files with 816 additions and 709 deletions
9
Geekbot.net/WebApi/Status/ApiStatusDto.cs
Normal file
9
Geekbot.net/WebApi/Status/ApiStatusDto.cs
Normal file
|
@ -0,0 +1,9 @@
|
|||
namespace Geekbot.net.WebApi.Status
|
||||
{
|
||||
public class ApiStatusDto
|
||||
{
|
||||
public string GeekbotVersion { get; set; }
|
||||
public string ApiVersion { get; set; }
|
||||
public string Status { get; set; }
|
||||
}
|
||||
}
|
22
Geekbot.net/WebApi/Status/StatusController.cs
Normal file
22
Geekbot.net/WebApi/Status/StatusController.cs
Normal file
|
@ -0,0 +1,22 @@
|
|||
using Geekbot.net.Lib;
|
||||
using Nancy;
|
||||
|
||||
namespace Geekbot.net.WebApi.Status
|
||||
{
|
||||
public class StatusController : NancyModule
|
||||
{
|
||||
public StatusController()
|
||||
{
|
||||
Get("/", args =>
|
||||
{
|
||||
var responseBody = new ApiStatusDto
|
||||
{
|
||||
GeekbotVersion = Constants.BotVersion.ToString(),
|
||||
ApiVersion = Constants.ApiVersion.ToString(),
|
||||
Status = "Online"
|
||||
};
|
||||
return Response.AsJson(responseBody);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue