api 설정 분리
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user