Created
January 6, 2024 02:41
-
-
Save DavidKlempfner/eff3120cfde44c93d701021235eade1f to your computer and use it in GitHub Desktop.
AuthCodePersistor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace AuthCodePersistor.Controllers | |
{ | |
[ApiController] | |
[Route("[controller]")] | |
public class AuthCodePersistor : ControllerBase | |
{ | |
private static string AuthCode = ""; | |
[HttpGet] | |
[Route("{authCode}")] | |
public IActionResult SetAuthCode(string authCode) | |
{ | |
AuthCode = authCode; | |
return Ok(); | |
} | |
[HttpGet] | |
public IActionResult GetAuthCode() | |
{ | |
return Ok(AuthCode); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment