mirror of
https://github.com/ncblakely/GiantsTools
synced 2024-11-21 21:55:38 +01:00
31 lines
772 B
C#
31 lines
772 B
C#
namespace Giants.WebApi.Controllers
|
|
{
|
|
using Giants.DataContract.V1;
|
|
using Giants.Services;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
[ApiController]
|
|
[ApiVersion("1.0")]
|
|
[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()
|
|
};
|
|
}
|
|
}
|
|
}
|