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

added notes

This commit is contained in:
Fedor Katurov 2022-04-04 15:00:33 +07:00
parent 592284f438
commit fce11163aa
9 changed files with 138 additions and 11 deletions

8
src/api/notes/index.ts Normal file
View file

@ -0,0 +1,8 @@
import { ApiGetNotesRequest, ApiGetNotesResponse } from '~/api/notes/types';
import { URLS } from '~/constants/urls';
import { api, cleanResult } from '~/utils/api';
export const apiGetNotes = ({ limit, offset, search }: ApiGetNotesRequest) =>
api
.get<ApiGetNotesResponse>(URLS.NOTES, { params: { limit, offset, search } })
.then(cleanResult);