add enable ssl

This commit is contained in:
Nicholas Orlowsky 2023-07-09 18:23:29 -04:00
parent d3813e1107
commit 5f1b5f1039
4 changed files with 25 additions and 5 deletions

View file

@ -49,3 +49,12 @@ export async function getNamespaces(accountId: string, skey: SessionKey): Promis
let namespaces: Namespace[] = await response.json();
return namespaces;
}
export async function enableSSL(accountId: string, serviceId: string, skey: SessionKey) {
await fetch('https://api-nws.nickorlow.com/'+accountId+'/services/'+serviceId+"/ssl", {
headers: {
Authorization: skey.id
},
method: "POST"
});
}