mirror of
https://github.com/TbT480jcspy/Deluxe-2023-Server-Code.git
synced 2026-09-09 07:01:25 -07:00
Movement
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user