mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
fixed urls to match golang
This commit is contained in:
parent
0c3625cd18
commit
6be9d54071
1 changed files with 4 additions and 4 deletions
|
@ -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`,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue