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:
parent
592284f438
commit
fce11163aa
9 changed files with 138 additions and 11 deletions
8
src/api/notes/index.ts
Normal file
8
src/api/notes/index.ts
Normal 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);
|
Loading…
Add table
Add a link
Reference in a new issue