Add remaining project files
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace DeluxeBackend.Controllers.Api
|
||||
{
|
||||
[Route("api/communityboard")]
|
||||
[ApiController]
|
||||
public class CommunityBoardController : ControllerBase
|
||||
{
|
||||
[HttpGet("v2/current")]
|
||||
[Authorize(Roles = "gameClient")]
|
||||
public async Task<IActionResult> Current()
|
||||
{
|
||||
return Ok(new
|
||||
{
|
||||
CurrentAnnouncement = new Dictionary<string, object>()
|
||||
{
|
||||
["Message"] = ":3",
|
||||
["MoreInfoUrl"] = ""
|
||||
},
|
||||
InstagramImages = new List<object>(),
|
||||
Videos = new List<object>(),
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user