From 56e2391204edc4988805d3b0b24fd4a180beda7e Mon Sep 17 00:00:00 2001 From: Derek Holloway Date: Tue, 9 Sep 2025 22:04:28 -0700 Subject: [PATCH] Update inputs for key/value controller --- src/Server/Controllers/RedisController.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Server/Controllers/RedisController.cs b/src/Server/Controllers/RedisController.cs index a337a0a..d7feede 100644 --- a/src/Server/Controllers/RedisController.cs +++ b/src/Server/Controllers/RedisController.cs @@ -19,8 +19,8 @@ namespace Auth.Controllers { } [Route("get")] - [HttpGet] - public async Task> Get(string JWT, string key) { + [HttpPost] + public async Task> Get([FromBody]string JWT, [FromQuery]string key) { Account? account = AuthJWT.ValidateJWTToken(JWT); if (account != null) { RedisValue result = await _redisdb.StringGetAsync( account.ID + account.Site + key ); @@ -31,8 +31,8 @@ namespace Auth.Controllers { } [Route("set")] - [HttpGet] - public async Task Set(string JWT, string key, string value) { + [HttpPost] + public async Task Set([FromBody]string JWT, [FromQuery]string key, [FromQuery]string value) { Account? account = AuthJWT.ValidateJWTToken(JWT); if (account != null) { await _redisdb.StringSetAsync( account.ID + account.Site + key, value );