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