api 설정 분리

This commit is contained in:
2025-08-27 13:06:13 +09:00
parent ab84ef0d0e
commit ea3ec7de3b
5 changed files with 19 additions and 12 deletions

View File

@@ -15,7 +15,7 @@ export const useApi = <T>(
const method = options.method ? options.method.toUpperCase() : 'GET'
return useFetch<T>(() => `${config.public.apiBase}${path}`, {
return useFetch<T>(() => `${config.public.apiBase}${config.public.contextPath}${path}`, {
method: method as any, // 타입 강제 우회
body: options.body,
query: options.query,