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

29 lines
681 B
C#

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()
};
}
}
}