1
0
Fork 0
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:
Fedor Katurov 2019-11-12 09:58:47 +07:00
parent 54687b131c
commit e45dee3c9f
12 changed files with 103 additions and 17 deletions

View file

@ -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/',