mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
fixed api call for code request
This commit is contained in:
parent
27665c462a
commit
b91ff98491
3 changed files with 5 additions and 18 deletions
|
@ -39,18 +39,6 @@ export type ApiGetNodeCommentsResponse = { comments: IComment[]; comment_count:
|
|||
export const apiPostNode = ({ node }: ApiPostNodeRequest) =>
|
||||
api.post<ApiPostNodeResult>(API.NODE.SAVE, node).then(cleanResult);
|
||||
|
||||
export const getNodes = ({
|
||||
from,
|
||||
access,
|
||||
}: {
|
||||
from?: string;
|
||||
access: string;
|
||||
}): Promise<IResultWithStatus<{ nodes: INode[] }>> =>
|
||||
api
|
||||
.get(API.NODE.GET, configWithToken(access, { params: { from } }))
|
||||
.then(resultMiddleware)
|
||||
.catch(errorMiddleware);
|
||||
|
||||
export const getNodeDiff = ({
|
||||
start,
|
||||
end,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue