From 4b442dd86938523e81f102f5a3a9543803894175 Mon Sep 17 00:00:00 2001 From: Tanuj Mittal Date: Sat, 6 Feb 2021 02:01:34 +0530 Subject: [PATCH] Use GET instead of PATCH for some Juno endpoints (#431) --- src/Juno/JunoClient.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/Juno/JunoClient.ts b/src/Juno/JunoClient.ts index b0ebc99d0..561c7ac00 100644 --- a/src/Juno/JunoClient.ts +++ b/src/Juno/JunoClient.ts @@ -186,10 +186,7 @@ export class JunoClient { public async getPublicGalleryData(): Promise> { const url = `${this.getNotebooksSubscriptionIdAccountUrl()}/gallery/public`; - const response = await window.fetch(url, { - method: "PATCH", - headers: JunoClient.getHeaders(), - }); + const response = await window.fetch(url, { headers: JunoClient.getHeaders() }); let data: IPublicGalleryData; if (response.status === HttpStatusCodes.OK) { @@ -222,10 +219,7 @@ export class JunoClient { public async isCodeOfConductAccepted(): Promise> { const url = `${this.getNotebooksSubscriptionIdAccountUrl()}/gallery/isCodeOfConductAccepted`; - const response = await window.fetch(url, { - method: "PATCH", - headers: JunoClient.getHeaders(), - }); + const response = await window.fetch(url, { headers: JunoClient.getHeaders() }); let data: boolean; if (response.status === HttpStatusCodes.OK) {