update CORS

This commit is contained in:
dmsanhrProject 2025-10-30 12:12:28 +07:00
parent df66538110
commit 5061eb5e65

View File

@ -42,6 +42,9 @@ origins = [
"http://127.0.0.1:3000",
"http://localhost:5173",
"http://127.0.0.1:5173",
"192.168.60.24:5173",
"http://labai.polinema.ac.id:666",
]
app.add_middleware(
@ -106,8 +109,8 @@ def detect_zip_type(zip_path: str) -> str:
from datetime import datetime
@app.get("/check", tags=["System"])
async def health_check():
@app.get("/status", tags=["System"])
async def server_status():
response = {
"status": "success",
"message": "Server is running smoothly ✅",