mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-11-12 05:15:14 +00:00
Certificates react work
- renewal and download - table columns rendering - searching - deleting
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
import * as api from "./base";
|
||||
import type { Binary } from "./responseTypes";
|
||||
|
||||
export async function downloadCertificate(id: number): Promise<Binary> {
|
||||
return await api.get({
|
||||
url: `/nginx/certificates/${id}/download`,
|
||||
});
|
||||
export async function downloadCertificate(id: number): Promise<void> {
|
||||
await api.download(
|
||||
{
|
||||
url: `/nginx/certificates/${id}/download`,
|
||||
},
|
||||
`certificate-${id}.zip`,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user