30 lines
940 B
C#
30 lines
940 B
C#
using DeluxeBackend.Models;
|
|
using Microsoft.AspNetCore.Authorization;
|
|
using Microsoft.AspNetCore.DataProtection.KeyManagement;
|
|
using Microsoft.AspNetCore.Http;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace DeluxeBackend.Controllers.Moderation
|
|
{
|
|
[Route("Moderation/voice")]
|
|
[ApiController]
|
|
public class VoiceController : ControllerBase
|
|
{
|
|
[HttpGet("config")]
|
|
[Authorize(Roles = "gameClient")]
|
|
public async Task<IActionResult> Config()
|
|
{
|
|
#pragma warning disable CS8625 // Cannot convert null literal to non-nullable reference type.
|
|
Dictionary<string, object> config = new Dictionary<string, object>()
|
|
{
|
|
["accountId"] = null,
|
|
["apiKey"] = null,
|
|
["submitAppealUrl"] = null,
|
|
["submitExternalModerationUrl"] = null
|
|
};
|
|
#pragma warning restore CS8625
|
|
return Ok(config);
|
|
}
|
|
}
|
|
}
|