This commit is contained in:
mmrbnjd
2024-04-05 21:03:40 +03:30
parent c439f88650
commit 3818cb7636
6 changed files with 64 additions and 28 deletions

View File

@@ -47,7 +47,13 @@ namespace Back.Controllers
}
[HttpPost("ReadPublicKeyFromCER")]
public async Task<ActionResult<PublicKeyDTO>> ReadPublicKeyFromCER(string modelfromBase64)
=> Ok(await _sBase.ReadPublicKeyFromCER(modelfromBase64));
{
var result = await _sBase.ReadPublicKeyFromCER(modelfromBase64);
if (result.type== "error")
return BadRequest();
return Ok(result);
}
}
}