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 );