feat: implement AI city forecasting and market scan hooks with backend API integration for the scan terminal dashboard
This commit is contained in:
@@ -21,6 +21,10 @@ export function resolveBackendApiUrl(path: string) {
|
||||
return `${base}${suffix}`;
|
||||
}
|
||||
|
||||
export async function fetchBackendApi(path: string, init?: RequestInit) {
|
||||
return fetch(resolveBackendApiUrl(path), init);
|
||||
}
|
||||
|
||||
export async function buildBrowserBackendHeaders(init?: HeadersInit) {
|
||||
const headers = new Headers(init);
|
||||
if (!headers.has("Accept")) {
|
||||
|
||||
Reference in New Issue
Block a user