Update inputs for key/value controller
Docker Build and Release Upload / build (push) Successful in 1m27s
Docker Build and Release Upload / build (push) Successful in 1m27s
This commit is contained in:
@@ -19,8 +19,8 @@ namespace Auth.Controllers {
|
||||
}
|
||||
|
||||
[Route("get")]
|
||||
[HttpGet]
|
||||
public async Task<ActionResult<string>> Get(string JWT, string key) {
|
||||
[HttpPost]
|
||||
public async Task<ActionResult<string>> 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<ActionResult> Set(string JWT, string key, string value) {
|
||||
[HttpPost]
|
||||
public async Task<ActionResult> 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 );
|
||||
|
||||
Reference in New Issue
Block a user