Initial commit

This commit is contained in:
github-classroom[bot]
2025-01-16 17:29:37 +00:00
committed by Igor Baliuk
commit b76ad1afe8
7 changed files with 118 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
import os
from fastapi import FastAPI
import uvicorn
app = FastAPI()
@app.get("/api/ping")
def send():
return {"status": "ok"}
if __name__ == "__main__":
server_address = os.getenv("SERVER_ADDRESS", "0.0.0.0:8080")
host, port = server_address.split(":")
uvicorn.run(app, host=host, port=int(port))