mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
fetching messages for user
This commit is contained in:
parent
54687b131c
commit
e45dee3c9f
12 changed files with 103 additions and 17 deletions
|
@ -3,11 +3,12 @@ import { INode } from '~/redux/types';
|
|||
export const API = {
|
||||
BASE: process.env.API_HOST,
|
||||
USER: {
|
||||
LOGIN: '/auth/login',
|
||||
VKONTAKTE_LOGIN: `${process.env.API_HOST}/auth/vkontakte`,
|
||||
ME: '/auth/',
|
||||
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`,
|
||||
UPLOAD: (target, type) => `/upload/${target}/${type}`,
|
||||
PROFILE: (username: string) => `/auth/user/${username}`,
|
||||
},
|
||||
NODE: {
|
||||
SAVE: '/node/',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue