From 5061eb5e651605c4d05ae729f4770f5fc249c324 Mon Sep 17 00:00:00 2001 From: dmsanhrProject Date: Thu, 30 Oct 2025 12:12:28 +0700 Subject: [PATCH] update CORS --- main.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index fd705f1..aeafe79 100644 --- a/main.py +++ b/main.py @@ -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 ✅",