refactor(front): extract shared utils and rewire pages

This commit is contained in:
Matthieu
2026-02-06 17:16:16 +01:00
parent 1fbd1d1b2e
commit 9ee348fff0
36 changed files with 1686 additions and 2194 deletions

View File

@@ -75,10 +75,10 @@ function resolveBaseUrl() {
return runtimeConfig.public.apiBaseUrl || '';
}
function createOptions<T>(options: FetchOptions<T> = {}) {
function createOptions(options: Record<string, unknown> = {}): Record<string, unknown> {
return {
baseURL: resolveBaseUrl(),
credentials: 'include' as const,
credentials: 'include',
...options,
};
}