변경사항: - authController.js: 로그인 후 /pages/dashboard.html로 리다이렉트 - config.js: 모든 대시보드 경로를 /pages/dashboard.html로 통일 - work/report-view.html: 대시보드 버튼 경로 수정 이제 로그인하면 올바른 경로로 이동합니다. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
40 lines
1.1 KiB
JavaScript
40 lines
1.1 KiB
JavaScript
// /js/config.js
|
|
|
|
// ES6 모듈을 사용하여 설정을 내보냅니다.
|
|
// 이 파일을 통해 프로젝트의 모든 하드코딩된 값을 관리합니다.
|
|
|
|
export const config = {
|
|
// API 관련 설정
|
|
api: {
|
|
// 로컬 개발 및 Docker 환경에서 사용하는 API 서버 포트
|
|
port: 20005,
|
|
// API의 기본 경로
|
|
path: '/api',
|
|
},
|
|
|
|
// 페이지 경로 설정
|
|
paths: {
|
|
// 로그인 페이지 경로
|
|
loginPage: '/index.html',
|
|
// 메인 대시보드 경로 (모든 사용자 공통)
|
|
dashboard: '/pages/dashboard.html',
|
|
// 하위 호환성을 위한 별칭들
|
|
defaultDashboard: '/pages/dashboard.html',
|
|
systemDashboard: '/pages/dashboard.html',
|
|
groupLeaderDashboard: '/pages/dashboard.html',
|
|
},
|
|
|
|
// 공용 컴포넌트 경로 설정
|
|
components: {
|
|
// 사이드바 HTML 파일 경로
|
|
sidebar: '/components/sidebar.html',
|
|
// 네비게이션 바 HTML 파일 경로 (예상)
|
|
navbar: '/components/navbar.html',
|
|
},
|
|
|
|
// 애플리케이션 관련 기타 설정
|
|
app: {
|
|
// 토큰 만료 확인 주기 (밀리초 단위, 예: 5분)
|
|
tokenRefreshInterval: 5 * 60 * 1000,
|
|
}
|
|
}; |