Add remaining project files
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user