add enable ssl
This commit is contained in:
parent
d3813e1107
commit
5f1b5f1039
4 changed files with 25 additions and 5 deletions
|
@ -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"
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue