1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 04:46:40 +07:00

added illustrations

This commit is contained in:
Fedor Katurov 2019-11-08 17:11:36 +07:00
parent 23f935aeeb
commit f355bec236
6 changed files with 1435 additions and 6 deletions

View file

@ -58,12 +58,14 @@ export const postNodeComment = ({
export const getNodeComments = ({
id,
access,
order = 'ASC',
}: {
id: number;
access: string;
order: 'ASC' | 'DESC';
}): Promise<IResultWithStatus<{ comments: Comment[] }>> =>
api
.get(API.NODE.COMMENT(id), configWithToken(access))
.get(API.NODE.COMMENT(id), configWithToken(access, { params: { order } }))
.then(resultMiddleware)
.catch(errorMiddleware);