CHORE(merge): merge from develop
Some checks failed
Build Docker Image / build-and-push (push) Has been cancelled
CI / lint-and-build (push) Has been cancelled

- Initial setup and all features from develop branch
- Includes: auth, deploy, docker, style fixes
- K3S deployment configuration
This commit is contained in:
2026-01-06 17:29:16 +09:00
parent b4ce36ba3b
commit f78454c2a1
159 changed files with 18365 additions and 774 deletions

54
nextjs/const/api.ts Normal file
View File

@@ -0,0 +1,54 @@
// API 엔드포인트 설정
export const API_ENDPOINTS = {
// 인증 관련 엔드포인트
AUTH: {
SIGN_IN: "/api/auth/signin",
SIGN_UP: "/api/auth/signup",
SIGN_OUT: "/api/auth/signout",
ME: "/api/auth/me",
},
// 파일 관련 엔드포인트
FILE: {
BASE: "/api/files",
BY_ID: (id: number) => `/api/files/${id}`,
DOWNLOAD_URL: "/api/files/download-url",
UPLOAD_URL: "/api/files/upload-url",
},
// 유저 관련 엔드포인트
USER: {
BASE: "/api/users",
BY_ID: (id: number) => `/api/users/${id}`,
},
// 공지사항 관련 엔드포인트
ANNOUNCEMENT: {
BASE: "/api/announcements",
BY_ID: (id: number) => `/api/announcements/${id}`,
},
// 갤러리 관련 엔드포인트
GALLERY: {
BASE: "/api/gallery",
BY_ID: (id: number) => `/api/gallery/${id}`,
},
// 예배 관련 엔드포인트
WORSHIP: {
BASE: "/api/worship",
BY_ID: (id: number) => `/api/worship/${id}`,
BY_CATEGORY: (category: string) => `/api/worship?category=${category}`,
REORDER: "/api/worship/reorder",
NEXT_ORDER: (category: string) => `/api/worship/next-order?category=${category}`,
},
// 제자훈련 관련 엔드포인트
DISCIPLE: {
BASE: "/api/disciple-videos",
BY_ID: (id: number) => `/api/disciple-videos?id=${id}`,
BY_STAGE: (stage: string) => `/api/disciple-videos?stage=${stage}`,
REORDER: "/api/disciple-videos/reorder",
},
} as const;