Skip to content

Commit

Permalink
fix: api fetch에 이중으로 들어간 / 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
phnml1 committed Nov 26, 2024
1 parent 06b012a commit cb9d725
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/(afterLogin)/_lib/FetchWithAuth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const fetchWithAuth = async <T = any>(endpoint: string, options: ApiFetch
...options.headers,
};

const response = await fetch(`${process.env.NEXT_PUBLIC_API_LOCATION}/api/${endpoint}`, {
const response = await fetch(`${process.env.NEXT_PUBLIC_API_LOCATION}/api${endpoint}`, {
...options,
credentials: 'include',
headers,
Expand Down

0 comments on commit cb9d725

Please sign in to comment.