1
0
mirror of https://github.com/ncblakely/GiantsTools synced 2024-11-05 06:45:37 +01:00
GiantsTools/Giants.WebApi/Controllers/CommunityController.cs
2020-08-31 22:46:07 -07:00

30 lines
748 B
C#

namespace Giants.WebApi.Controllers
{
using Giants.DataContract.V1;
using Giants.Services;
using Microsoft.AspNetCore.Mvc;
[ApiController]
[Route("api/[controller]")]
public class CommunityController : ControllerBase
{
private readonly ICommunityService discordService;
public CommunityController(
ICommunityService communityService)
{
this.discordService = communityService;
}
[HttpGet]
public CommunityStatus GetDiscordStatus()
{
return new CommunityStatus
{
CommunityAppName = "Discord",
CommunityAppUri = this.discordService.GetDiscordUri()
};
}
}
}