feat: mock 데이터 제거 및 실제 API 연동
- 모든 API 파일에서 mock 제거, 실제 백엔드 호출로 전환 - 공지사항 날짜 ISO 포맷에서 날짜만 표시하도록 수정 - VITE_API_BASE_URL을 https://a301.api.tolelom.xyz로 변경 (.env, gitignore) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,14 +1,6 @@
|
||||
import { apiFetch } from './client';
|
||||
|
||||
// TODO: 백엔드 연동 시 mock 제거
|
||||
const USE_MOCK = true;
|
||||
|
||||
export async function login(username, password) {
|
||||
if (USE_MOCK) {
|
||||
await new Promise((r) => setTimeout(r, 500));
|
||||
if (!username || !password) throw new Error('아이디와 비밀번호를 입력해주세요.');
|
||||
return { token: 'mock-jwt-token', username };
|
||||
}
|
||||
return apiFetch('/api/auth/login', {
|
||||
method: 'POST',
|
||||
body: JSON.stringify({ username, password }),
|
||||
|
||||
Reference in New Issue
Block a user