Skip to content

Commit

Permalink
refactor: instance 폴더 구조 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
seonghunYang committed Sep 25, 2024
1 parent 5d3f63a commit c3c1db2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/business/services/user/user.command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion app/business/services/user/user.query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<InitUserInfoResponse | UserInfoResponse | undefined> {
try {
Expand Down
2 changes: 1 addition & 1 deletion app/utils/http/instance.ts → app/utils/api/instance.ts
Original file line number Diff line number Diff line change
@@ -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: {
Expand Down

0 comments on commit c3c1db2

Please sign in to comment.