v0.25.1
This commit is contained in:
1 parent
87e571c170
commit
fa7abc9e53
308 files changed
+49746
-50237
No files matched your search
@@ -0,0 +1,15 @@
|
||||
async fn acme_renew(
|
||||
State(state): State<Arc<App>>,
|
||||
Extension(session): Extension<Session>,
|
||||
Json(input): Json<RenewRequest>,
|
||||
) -> Result<Response, ApiError> {
|
||||
let job = crate::acme::Manager::renew(
|
||||
state,
|
||||
&input.certificate_id,
|
||||
session.username,
|
||||
input.dry_run,
|
||||
false,
|
||||
)
|
||||
.await?;
|
||||
Ok((StatusCode::ACCEPTED, Json(json!({"job":job}))).into_response())
|
||||
}
|
||||
Reference in new issue
Block a user