Refactored and fixed api endpoints

This commit is contained in:
Benjamin Sherriff
2023-12-02 13:52:01 -05:00
parent 046bf51697
commit dc2ff172b0
11 changed files with 238 additions and 182 deletions

View File

@@ -41,6 +41,11 @@ export async function post(endpoint: string, body: any, options?: PostOptions):
return response;
}
export interface APIResponse<T> {
data: T;
metadata: Metadata;
}
export interface Metadata {
limit: number;
page: number;