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:
parent
0c3625cd18
commit
6be9d54071
1 changed files with 4 additions and 4 deletions
|
@ -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`,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue