mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2024-11-29 08:56:52 +00:00
Use GET instead of PATCH for some Juno endpoints (#431)
This commit is contained in:
parent
f0b4737313
commit
4b442dd869
@ -186,10 +186,7 @@ export class JunoClient {
|
|||||||
|
|
||||||
public async getPublicGalleryData(): Promise<IJunoResponse<IPublicGalleryData>> {
|
public async getPublicGalleryData(): Promise<IJunoResponse<IPublicGalleryData>> {
|
||||||
const url = `${this.getNotebooksSubscriptionIdAccountUrl()}/gallery/public`;
|
const url = `${this.getNotebooksSubscriptionIdAccountUrl()}/gallery/public`;
|
||||||
const response = await window.fetch(url, {
|
const response = await window.fetch(url, { headers: JunoClient.getHeaders() });
|
||||||
method: "PATCH",
|
|
||||||
headers: JunoClient.getHeaders(),
|
|
||||||
});
|
|
||||||
|
|
||||||
let data: IPublicGalleryData;
|
let data: IPublicGalleryData;
|
||||||
if (response.status === HttpStatusCodes.OK) {
|
if (response.status === HttpStatusCodes.OK) {
|
||||||
@ -222,10 +219,7 @@ export class JunoClient {
|
|||||||
|
|
||||||
public async isCodeOfConductAccepted(): Promise<IJunoResponse<boolean>> {
|
public async isCodeOfConductAccepted(): Promise<IJunoResponse<boolean>> {
|
||||||
const url = `${this.getNotebooksSubscriptionIdAccountUrl()}/gallery/isCodeOfConductAccepted`;
|
const url = `${this.getNotebooksSubscriptionIdAccountUrl()}/gallery/isCodeOfConductAccepted`;
|
||||||
const response = await window.fetch(url, {
|
const response = await window.fetch(url, { headers: JunoClient.getHeaders() });
|
||||||
method: "PATCH",
|
|
||||||
headers: JunoClient.getHeaders(),
|
|
||||||
});
|
|
||||||
|
|
||||||
let data: boolean;
|
let data: boolean;
|
||||||
if (response.status === HttpStatusCodes.OK) {
|
if (response.status === HttpStatusCodes.OK) {
|
||||||
|
Loading…
Reference in New Issue
Block a user