changes
This commit is contained in:
20
Controllers/PartnerController.cs
Normal file
20
Controllers/PartnerController.cs
Normal 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 });
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user