1
0
mirror of https://github.com/ncblakely/GiantsTools synced 2024-11-17 03:55:37 +01:00
GiantsTools/Giants.WebApi/Controllers/DiscordController.cs

29 lines
681 B
C#
Raw Normal View History

2020-08-16 11:03:10 +02:00
namespace Giants.WebApi.Controllers
{
using Giants.DataContract.V1;
using Giants.Services;
using Microsoft.AspNetCore.Mvc;
[ApiController]
[Route("api/[controller]")]
public class DiscordController : ControllerBase
{
private readonly IDiscordService discordService;
public DiscordController(
IDiscordService discordService)
{
this.discordService = discordService;
}
[HttpGet]
public DiscordStatus GetDiscordStatus()
{
return new DiscordStatus
{
DiscordUri = this.discordService.GetDiscordUri()
};
}
}
}