add enable ssl
This commit is contained in:
parent
a9a015e5ba
commit
e491b99b53
2 changed files with 3 additions and 3 deletions
|
@ -50,10 +50,10 @@ export async function getNamespaces(accountId: string, skey: SessionKey): Promis
|
|||
return namespaces;
|
||||
}
|
||||
|
||||
export async function enableSSL(accountId: string, serviceId: string, skey: SessionKey) {
|
||||
export async function enableSSL(accountId: string, serviceId: string, session: SessionKey) {
|
||||
await fetch('https://api-nws.nickorlow.com/'+accountId+'/service/'+serviceId+"/ssl", {
|
||||
headers: {
|
||||
Authorization: skey.id
|
||||
Authorization: btoa(session.accountId + ":" + session.id)
|
||||
},
|
||||
method: "POST"
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue