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

fixed urls to match golang

This commit is contained in:
Fedor Katurov 2020-04-08 16:26:13 +07:00
parent 0c3625cd18
commit 6be9d54071

View file

@ -6,9 +6,9 @@ export const API = {
LOGIN: '/user/login', LOGIN: '/user/login',
VKONTAKTE_LOGIN: `${process.env.API_HOST}/user/vkontakte`, VKONTAKTE_LOGIN: `${process.env.API_HOST}/user/vkontakte`,
ME: '/user/', ME: '/user/',
PROFILE: (username: string) => `/user/${username}/profile`, PROFILE: (username: string) => `/user/user/${username}/profile`,
MESSAGES: (username: string) => `/user/${username}/messages`, MESSAGES: (username: string) => `/user/user/${username}/messages`,
MESSAGE_SEND: (username: string) => `/user/${username}/messages`, MESSAGE_SEND: (username: string) => `/user/user/${username}/messages`,
GET_UPDATES: '/user/updates', GET_UPDATES: '/user/updates',
REQUEST_CODE: (code?: string) => `/user/restore/${code || ''}`, REQUEST_CODE: (code?: string) => `/user/restore/${code || ''}`,
@ -17,7 +17,7 @@ export const API = {
NODE: { NODE: {
SAVE: '/node/', SAVE: '/node/',
GET: '/node/', GET: '/node/',
GET_DIFF: '/node/diff', GET_DIFF: '/nodes/diff',
GET_NODE: (id: number | string) => `/node/${id}`, GET_NODE: (id: number | string) => `/node/${id}`,
COMMENT: (id: INode['id']) => `/node/${id}/comment`, COMMENT: (id: INode['id']) => `/node/${id}/comment`,