This commit is contained in:
Exception
2026-05-09 14:31:53 -04:00
parent ad3fa51fd9
commit 1f113298e0
251 changed files with 100454 additions and 0 deletions
+49
View File
@@ -0,0 +1,49 @@
using DeluxeNET.Data;
using DeluxeNET.Security;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
namespace DeluxeNET.Controllers
{
[Route("api/[controller]")]
[ApiController]
public class roomsController : ControllerBase
{
private readonly AppDbContext _db;
private readonly jwt _jwt;
public roomsController(AppDbContext db, jwt jwt)
{
_db = db;
_jwt = jwt;
}
[HttpGet("v1/filters")]
public IActionResult GetFilters()
{
var accountId = _jwt.VerifyToken(Request.Headers["Authorization"].ToString());
if (accountId == null) return Unauthorized();
return Ok(new
{
PinnedFilers = new List<string>
{
"recroomoriginal","community","quest","puzzle","pvp","hangout","art","tutorial",
"fandom","performance","action","horror"
},
PopularFilters = new List<string>
{
"recroomoriginal","quest","community","import"
}
});
}
//[HttpGet("requiring/developer")]
//public IActionResult getDoesRequireDev()
//{
// return Ok(false);
//}
}
}