Skip to content
Snippets Groups Projects
Commit 8a708028 authored by 심재엽's avatar 심재엽
Browse files

fix: 공지사항 목록 가져오기 api 경로 수정

parent 2dc6bfa5
Branches
No related tags found
1 merge request!44[design] 채팅방 내부 디자인 변경, 스크롤 추가, 버튼 컴포넌트 디자인 추가
...@@ -727,7 +727,7 @@ function ChattingDetail() { ...@@ -727,7 +727,7 @@ function ChattingDetail() {
// 공지사항 목록 가져오기 // 공지사항 목록 가져오기
const fetchNotices = async () => { const fetchNotices = async () => {
try { try {
const response = await fetch(`http://localhost:8080/api/chat/${chatRoomId}/notices`); const response = await fetch(`${process.env.REACT_APP_BASE_URL}/api/chat/${chatRoomId}/notices`);
if (response.ok) { if (response.ok) {
const data = await response.json(); const data = await response.json();
setNotices(data); // 공지사항 목록 업데이트 setNotices(data); // 공지사항 목록 업데이트
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment