From f2e9095cd1eeddf3029799a38cbe7d4bc2b7a76d Mon Sep 17 00:00:00 2001 From: Fedor Katurov Date: Thu, 8 Sep 2022 20:05:19 +0700 Subject: [PATCH] fixed urls --- src/api/auth/index.ts | 2 +- src/constants/api.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/api/auth/index.ts b/src/api/auth/index.ts index 0d589d02..bce31564 100644 --- a/src/api/auth/index.ts +++ b/src/api/auth/index.ts @@ -85,7 +85,7 @@ export const apiLoginWithSocial = ({ password, }: ApiLoginWithSocialRequest) => api - .post(API.USER.LOGIN_WITH_SOCIAL, { + .put(API.USER.LOGIN_WITH_SOCIAL, { token, username, password, diff --git a/src/constants/api.ts b/src/constants/api.ts index 234c6635..7c31b671 100644 --- a/src/constants/api.ts +++ b/src/constants/api.ts @@ -18,10 +18,10 @@ export const API = { REQUEST_CODE: (code?: string) => `/auth/restore/${code || ''}`, UPLOAD: (target, type) => `/upload/${target}/${type}`, - GET_SOCIALS: '/oauth/', + GET_SOCIALS: '/oauth', DROP_SOCIAL: (provider, id) => `/oauth/${provider}/${id}`, - ATTACH_SOCIAL: `/oauth/attach`, - LOGIN_WITH_SOCIAL: `/oauth/login`, + ATTACH_SOCIAL: `/oauth`, + LOGIN_WITH_SOCIAL: `/oauth`, }, NODES: { SAVE: '/nodes/',