mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-12-19 13:53:25 +00:00
Moved v3 code from NginxProxyManager/nginx-proxy-manager-3 to NginxProxyManager/nginx-proxy-manager
This commit is contained in:
17
frontend/src/api/npm/setCertificateAuthority.ts
Normal file
17
frontend/src/api/npm/setCertificateAuthority.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import * as api from "./base";
|
||||
import { CertificateAuthority } from "./models";
|
||||
|
||||
export async function setCertificateAuthority(
|
||||
id: number,
|
||||
data: any,
|
||||
): Promise<CertificateAuthority> {
|
||||
if (data.id) {
|
||||
delete data.id;
|
||||
}
|
||||
|
||||
const { result } = await api.put({
|
||||
url: `/certificate-authorities/${id}`,
|
||||
data,
|
||||
});
|
||||
return result;
|
||||
}
|
||||
Reference in New Issue
Block a user