From e491b99b53bad2dedaa1f791e064dca3f1434649 Mon Sep 17 00:00:00 2001 From: Nicholas Orlowsky Date: Sun, 9 Jul 2023 19:27:04 -0400 Subject: [PATCH] add enable ssl --- .idea/workspace.xml | 2 +- src/nws-api/calls.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index f3884e2..277b15e 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -68,7 +68,7 @@ - + diff --git a/src/nws-api/calls.ts b/src/nws-api/calls.ts index 1f90108..aa9e62f 100644 --- a/src/nws-api/calls.ts +++ b/src/nws-api/calls.ts @@ -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" });