v1.1 순서설정
This commit is contained in:
parent
304150e23a
commit
694593aadd
@ -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
12
app/utils/constants.py
Normal 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()}
|
||||
Loading…
x
Reference in New Issue
Block a user