Update inputs for key/value controller
Docker Build and Release Upload / build (push) Successful in 1m27s

This commit is contained in:
2025-09-09 22:04:28 -07:00
parent 12eaaadaef
commit 56e2391204
+4 -4
View File
@@ -19,8 +19,8 @@ namespace Auth.Controllers {
} }
[Route("get")] [Route("get")]
[HttpGet] [HttpPost]
public async Task<ActionResult<string>> Get(string JWT, string key) { public async Task<ActionResult<string>> Get([FromBody]string JWT, [FromQuery]string key) {
Account? account = AuthJWT.ValidateJWTToken(JWT); Account? account = AuthJWT.ValidateJWTToken(JWT);
if (account != null) { if (account != null) {
RedisValue result = await _redisdb.StringGetAsync( account.ID + account.Site + key ); RedisValue result = await _redisdb.StringGetAsync( account.ID + account.Site + key );
@@ -31,8 +31,8 @@ namespace Auth.Controllers {
} }
[Route("set")] [Route("set")]
[HttpGet] [HttpPost]
public async Task<ActionResult> Set(string JWT, string key, string value) { public async Task<ActionResult> Set([FromBody]string JWT, [FromQuery]string key, [FromQuery]string value) {
Account? account = AuthJWT.ValidateJWTToken(JWT); Account? account = AuthJWT.ValidateJWTToken(JWT);
if (account != null) { if (account != null) {
await _redisdb.StringSetAsync( account.ID + account.Site + key, value ); await _redisdb.StringSetAsync( account.ID + account.Site + key, value );