mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
getting flow diff
This commit is contained in:
parent
971578bb21
commit
6641a03d92
4 changed files with 57 additions and 23 deletions
|
@ -1,28 +1,29 @@
|
|||
import { INode } from '~/redux/types';
|
||||
import { INode } from "~/redux/types";
|
||||
|
||||
export const API = {
|
||||
BASE: process.env.API_HOST,
|
||||
USER: {
|
||||
LOGIN: '/user/login',
|
||||
LOGIN: "/user/login",
|
||||
VKONTAKTE_LOGIN: `${process.env.API_HOST}/user/vkontakte`,
|
||||
ME: '/user/',
|
||||
ME: "/user/",
|
||||
PROFILE: (username: string) => `/user/${username}/profile`,
|
||||
MESSAGES: (username: string) => `/user/${username}/messages`,
|
||||
MESSAGE_SEND: (username: string) => `/user/${username}/messages`,
|
||||
GET_UPDATES: '/user/updates',
|
||||
GET_UPDATES: "/user/updates",
|
||||
|
||||
UPLOAD: (target, type) => `/upload/${target}/${type}`,
|
||||
UPLOAD: (target, type) => `/upload/${target}/${type}`
|
||||
},
|
||||
NODE: {
|
||||
SAVE: '/node/',
|
||||
GET: '/node/',
|
||||
SAVE: "/node/",
|
||||
GET: "/node/",
|
||||
GET_DIFF: "/node/diff",
|
||||
GET_NODE: (id: number | string) => `/node/${id}`,
|
||||
|
||||
COMMENT: (id: INode['id']) => `/node/${id}/comment`,
|
||||
RELATED: (id: INode['id']) => `/node/${id}/related`,
|
||||
UPDATE_TAGS: (id: INode['id']) => `/node/${id}/tags`,
|
||||
POST_LIKE: (id: INode['id']) => `/node/${id}/like`,
|
||||
POST_STAR: (id: INode['id']) => `/node/${id}/heroic`,
|
||||
SET_CELL_VIEW: (id: INode['id']) => `/node/${id}/cell-view`,
|
||||
},
|
||||
COMMENT: (id: INode["id"]) => `/node/${id}/comment`,
|
||||
RELATED: (id: INode["id"]) => `/node/${id}/related`,
|
||||
UPDATE_TAGS: (id: INode["id"]) => `/node/${id}/tags`,
|
||||
POST_LIKE: (id: INode["id"]) => `/node/${id}/like`,
|
||||
POST_STAR: (id: INode["id"]) => `/node/${id}/heroic`,
|
||||
SET_CELL_VIEW: (id: INode["id"]) => `/node/${id}/cell-view`
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue