Skip to content

Commit

Permalink
♻️ WV-42 refactor : api 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hayoung78 committed Jan 16, 2025
1 parent 9db8864 commit 74f3270
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/news/apis.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// news-detail
const BASE_URL = process.env.NEXT_PUBLIC_API_KEY;
export const getNewsDetail = async (
artcSeq: string
): Promise<ArticleContentsResponse["data"]> => {
const queryparam = artcSeq ? `newsdetail?artcSeq=${artcSeq}` : "";

const url = `/api/article/${queryparam}`;
const url = `http://${BASE_URL}/api/article/${queryparam}`;
const res = await fetch(url);

if (!res.ok) {
Expand Down

0 comments on commit 74f3270

Please sign in to comment.