mirror of
https://git.verdigado.com/NB-Public/simple-wkd.git
synced 2024-12-06 14:52:41 +01:00
Improve error handling
This commit is contained in:
parent
4b445a6a96
commit
98f0563952
4 changed files with 17 additions and 19 deletions
|
@ -63,7 +63,7 @@ async fn submit(pem: web::Form<Pem>) -> Result<String> {
|
|||
Ok(String::from("Key submitted successfully!"))
|
||||
}
|
||||
|
||||
#[get("/api/confirm/{data}")]
|
||||
#[get("/api/confirm/{value}")]
|
||||
async fn confirm(token: web::Path<Token>) -> Result<String> {
|
||||
confirm_action(&token.value)?;
|
||||
Ok(String::from("Confirmation successfull!"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue