Refactored and fixed api endpoints
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user