Converted user and website settings.
This commit is contained in:
@@ -1,10 +1,18 @@
|
||||
import { buildUrl } from '@/lib/url';
|
||||
|
||||
export interface ErrorResponse {
|
||||
error: {
|
||||
status: number;
|
||||
message: string;
|
||||
code?: string;
|
||||
};
|
||||
}
|
||||
|
||||
export interface FetchResponse {
|
||||
ok: boolean;
|
||||
status: number;
|
||||
data?: any;
|
||||
error?: any;
|
||||
error?: ErrorResponse;
|
||||
}
|
||||
|
||||
export async function request(
|
||||
|
||||
Reference in New Issue
Block a user