1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 04:46:40 +07:00

fixed urls

This commit is contained in:
Fedor Katurov 2022-09-08 20:05:19 +07:00
parent c6a09c27c1
commit f2e9095cd1
2 changed files with 4 additions and 4 deletions

View file

@ -85,7 +85,7 @@ export const apiLoginWithSocial = ({
password, password,
}: ApiLoginWithSocialRequest) => }: ApiLoginWithSocialRequest) =>
api api
.post<ApiLoginWithSocialResult>(API.USER.LOGIN_WITH_SOCIAL, { .put<ApiLoginWithSocialResult>(API.USER.LOGIN_WITH_SOCIAL, {
token, token,
username, username,
password, password,

View file

@ -18,10 +18,10 @@ export const API = {
REQUEST_CODE: (code?: string) => `/auth/restore/${code || ''}`, REQUEST_CODE: (code?: string) => `/auth/restore/${code || ''}`,
UPLOAD: (target, type) => `/upload/${target}/${type}`, UPLOAD: (target, type) => `/upload/${target}/${type}`,
GET_SOCIALS: '/oauth/', GET_SOCIALS: '/oauth',
DROP_SOCIAL: (provider, id) => `/oauth/${provider}/${id}`, DROP_SOCIAL: (provider, id) => `/oauth/${provider}/${id}`,
ATTACH_SOCIAL: `/oauth/attach`, ATTACH_SOCIAL: `/oauth`,
LOGIN_WITH_SOCIAL: `/oauth/login`, LOGIN_WITH_SOCIAL: `/oauth`,
}, },
NODES: { NODES: {
SAVE: '/nodes/', SAVE: '/nodes/',