add enable ssl

This commit is contained in:
Nicholas Orlowsky 2023-07-09 19:27:04 -04:00
parent a9a015e5ba
commit e491b99b53
2 changed files with 3 additions and 3 deletions

View file

@ -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>

View file

@ -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"
}); });