diff --git a/src/lib/api.ts b/src/lib/api.ts index d26e713..af9181f 100644 --- a/src/lib/api.ts +++ b/src/lib/api.ts @@ -44,6 +44,15 @@ export const getCategory = async (id: string): Promise => { return response.json() as APIResponse; }; +export const getAllTags = async (): Promise => { + // TODO: Implement pagination as per API + const response: Response = await fetch(`${ApiURL}/tags`, { + headers, + }); + + return response.json() as APIResponse; +}; + export const getAllTransactions = async (): Promise => { // TODO: Implement pagination as per API const response: Response = await fetch(`${ApiURL}/transactions`, {