mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-09-15 03:12:34 +00:00
React
This commit is contained in:
11
frontend/src/api/backend/renewCertificate.ts
Normal file
11
frontend/src/api/backend/renewCertificate.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import * as api from "./base";
|
||||
import type { Certificate } from "./models";
|
||||
|
||||
export async function renewCertificate(id: number, abortController?: AbortController): Promise<Certificate> {
|
||||
return await api.post(
|
||||
{
|
||||
url: `/nginx/certificates/${id}/renew`,
|
||||
},
|
||||
abortController,
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user