From 6be9d54071c8d5abe0c0c4942beef550e47ecc8a Mon Sep 17 00:00:00 2001 From: Fedor Katurov Date: Wed, 8 Apr 2020 16:26:13 +0700 Subject: [PATCH] fixed urls to match golang --- src/constants/api.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/constants/api.ts b/src/constants/api.ts index 0dd2e09c..7b381290 100644 --- a/src/constants/api.ts +++ b/src/constants/api.ts @@ -6,9 +6,9 @@ export const API = { LOGIN: '/user/login', VKONTAKTE_LOGIN: `${process.env.API_HOST}/user/vkontakte`, ME: '/user/', - PROFILE: (username: string) => `/user/${username}/profile`, - MESSAGES: (username: string) => `/user/${username}/messages`, - MESSAGE_SEND: (username: string) => `/user/${username}/messages`, + PROFILE: (username: string) => `/user/user/${username}/profile`, + MESSAGES: (username: string) => `/user/user/${username}/messages`, + MESSAGE_SEND: (username: string) => `/user/user/${username}/messages`, GET_UPDATES: '/user/updates', REQUEST_CODE: (code?: string) => `/user/restore/${code || ''}`, @@ -17,7 +17,7 @@ export const API = { NODE: { SAVE: '/node/', GET: '/node/', - GET_DIFF: '/node/diff', + GET_DIFF: '/nodes/diff', GET_NODE: (id: number | string) => `/node/${id}`, COMMENT: (id: INode['id']) => `/node/${id}/comment`,