This commit is contained in:
2025-12-26 16:40:32 +03:00
commit 4f1be2c3db
37 changed files with 2222 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
using Microsoft.AspNetCore.Mvc;
using public_valetax.DTOs;
namespace public_valetax.Controllers
{
[ApiController]
[Route("api.[controller]")]
public class PartnerController : ControllerBase
{
[HttpPost("rememberMe")]
public ActionResult<TokenInfo> RememberMe([FromQuery] string code)
{
// This is a simplified implementation
// In a real application, you would validate the code and generate a proper JWT token
var token = $"generated_token_for_code_{code}";
return Ok(new TokenInfo { Token = token });
}
}
}