diff --git a/app/business/services/user/user.command.ts b/app/business/services/user/user.command.ts index 07fa39d..72cc370 100644 --- a/app/business/services/user/user.command.ts +++ b/app/business/services/user/user.command.ts @@ -23,8 +23,8 @@ import { cookies } from 'next/headers'; import { isValidation } from '@/app/utils/zod/validation.util'; import { redirect } from 'next/navigation'; import { fetchUser } from './user.query'; -import { instance } from '@/app/utils/http/instance'; import fetchAX from 'fetch-ax'; +import { instance } from '@/app/utils/api/instance'; function deleteCookies() { cookies().delete('accessToken'); diff --git a/app/business/services/user/user.query.ts b/app/business/services/user/user.query.ts index 44d7b7f..feab0b4 100644 --- a/app/business/services/user/user.query.ts +++ b/app/business/services/user/user.query.ts @@ -11,7 +11,7 @@ import { FindIdResponseSchema, } from './user.validation'; import { FormState } from '@/app/ui/view/molecule/form/form-root'; -import { instance } from '@/app/utils/http/instance'; +import { instance } from '@/app/utils/api/instance'; export async function auth(): Promise { try { diff --git a/app/utils/http/instance.ts b/app/utils/api/instance.ts similarity index 89% rename from app/utils/http/instance.ts rename to app/utils/api/instance.ts index 910c73d..037e70b 100644 --- a/app/utils/http/instance.ts +++ b/app/utils/api/instance.ts @@ -1,6 +1,6 @@ import fetchAx, { FetchAxError } from 'fetch-ax'; -import { fetchAxErrorHandler } from './http-error-handler'; import { cookies } from 'next/headers'; +import { fetchAxErrorHandler } from '../http/http-error-handler'; export const instance = fetchAx.create({ headers: {