add enable ssl
This commit is contained in:
parent
a9a015e5ba
commit
e491b99b53
|
@ -68,7 +68,7 @@
|
||||||
<workItem from="1673378530233" duration="327000" />
|
<workItem from="1673378530233" duration="327000" />
|
||||||
<workItem from="1673538703809" duration="6147000" />
|
<workItem from="1673538703809" duration="6147000" />
|
||||||
<workItem from="1674698447115" duration="249000" />
|
<workItem from="1674698447115" duration="249000" />
|
||||||
<workItem from="1688939993548" duration="1768000" />
|
<workItem from="1688939993548" duration="2065000" />
|
||||||
</task>
|
</task>
|
||||||
<servers />
|
<servers />
|
||||||
</component>
|
</component>
|
||||||
|
|
|
@ -50,10 +50,10 @@ export async function getNamespaces(accountId: string, skey: SessionKey): Promis
|
||||||
return namespaces;
|
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", {
|
await fetch('https://api-nws.nickorlow.com/'+accountId+'/service/'+serviceId+"/ssl", {
|
||||||
headers: {
|
headers: {
|
||||||
Authorization: skey.id
|
Authorization: btoa(session.accountId + ":" + session.id)
|
||||||
},
|
},
|
||||||
method: "POST"
|
method: "POST"
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue