v1.1 순서설정

This commit is contained in:
SR07 2025-06-05 15:58:39 +09:00
parent 304150e23a
commit 694593aadd
2 changed files with 15 additions and 1 deletions

View File

@ -51,11 +51,13 @@ async def log_exceptions_middleware(request: Request, call_next):
origins = [
"https://sukjenogi.biryu2000.kr", # 프론트 도메인
"https://sukjenogi.com", # 프론트 도메인
"https://www.sukjenogi.com", # 프론트 도메인
]
app.add_middleware(
CORSMiddleware,
allow_origins=["*"],
allow_origins=origins,
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],

12
app/utils/constants.py Normal file
View File

@ -0,0 +1,12 @@
# 서버 ID → 서버명
SERVER_MAP = {
1: "아스테르",
2: "세레브레이",
3: "쿠아트",
4: "루나리오",
5: "알렉시아",
6: "라사",
}
# 서버명 → 서버 ID (역방향 매핑)
SERVER_REVERSE_MAP = {v: k for k, v in SERVER_MAP.items()}