mirror of
https://github.com/TbT480jcspy/Deluxe-2023-Server-Code.git
synced 2026-09-09 07:01:25 -07:00
20 lines
548 B
C#
20 lines
548 B
C#
using Microsoft.AspNetCore.Http;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace DeluxeNET.Controllers
|
|
{
|
|
[Route("api/[controller]")]
|
|
[ApiController]
|
|
public class communityboardController : ControllerBase
|
|
{
|
|
[HttpGet("v2/current")]
|
|
public async Task<IActionResult> getcb()
|
|
{
|
|
var j = JsonConvert.DeserializeObject(await System.IO.File.ReadAllTextAsync(Path.Combine(Directory.GetCurrentDirectory(), "Jsons", "communityboard.json")));
|
|
|
|
return Ok(j);
|
|
}
|
|
}
|
|
}
|