mirror of
https://github.com/Alvin-Zilverstand/nginx-proxy-manager.git
synced 2026-12-01 18:21:19 +01:00
Certificates react work
- renewal and download - table columns rendering - searching - deleting
This commit is contained in:
16 files changed
+381
-86
No files matched your search
@@ -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