mirror of
https://github.com/TbT480jcspy/Deluxe-2023-Server-Code.git
synced 2026-09-08 22:51:28 -07:00
Movement
This commit is contained in:
@@ -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
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user