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
+34
View File
@@ -0,0 +1,34 @@
using DeluxeNET.Security;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
namespace DeluxeNET.Controllers
{
[Route("[controller]")]
[ApiController]
public class parentalcontrolController : ControllerBase
{
private readonly jwt _jwt;
public parentalcontrolController(jwt jwt)
{
_jwt = jwt;
}
[HttpGet("me")]
public IActionResult getMyParentalControlConf()
{
var accountId = _jwt.VerifyToken(Request.Headers["Authorization"].ToString());
if (accountId == null) return Unauthorized();
return Ok(new
{
accountId = accountId,
disallowInAppPurchases = false
});
}
}
}