From f5b2a5e6eeb397caf3f15c9f297a21a7dd7f3a81 Mon Sep 17 00:00:00 2001 From: tlartem Date: Fri, 25 Jul 2025 18:33:49 +0300 Subject: [PATCH] =?UTF-8?q?=D1=84=D0=B8=D0=BA=D1=81=20=D1=80=D0=B5=D0=B4?= =?UTF-8?q?=D0=B0=D0=BA=D1=82=D0=B8=D1=80=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D1=8F=20=D1=8D=D1=82=D0=B0=D0=BB=D0=BE=D0=BD=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../element/model/implementations/StandardsElement/api.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/entitiy/element/model/implementations/StandardsElement/api.ts b/src/entitiy/element/model/implementations/StandardsElement/api.ts index f691952..444d484 100644 --- a/src/entitiy/element/model/implementations/StandardsElement/api.ts +++ b/src/entitiy/element/model/implementations/StandardsElement/api.ts @@ -23,7 +23,7 @@ export const getStandards = async (): Promise => { export const getStandard = async ( standardId: string ): Promise => { - const response = await fetch(`${BASE_URL}/standards/${standardId}/`) + const response = await fetch(`${BASE_URL}/standards/${standardId}`) if (!response.ok) { throw new Error('Failed to fetch standard') } @@ -52,7 +52,7 @@ export const patchStandard = async ( standardId: string, input: PatchStandardInput ): Promise => { - const response = await fetch(`${BASE_URL}/standards/${standardId}/`, { + const response = await fetch(`${BASE_URL}/standards/${standardId}`, { method: 'PATCH', headers: { 'Content-Type': 'application/json', @@ -69,7 +69,7 @@ export const patchStandard = async ( export const deleteStandard = async ( standardId: string ): Promise<{ [key: string]: string }> => { - const response = await fetch(`${BASE_URL}/standards/${standardId}/`, { + const response = await fetch(`${BASE_URL}/standards/${standardId}`, { method: 'DELETE', }) if (!response.ok) {