update CORS
This commit is contained in:
parent
df66538110
commit
5061eb5e65
7
main.py
7
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 ✅",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user