File size: 352 Bytes
f35f208
 
 
5d274cb
f35f208
5d274cb
 
 
f35f208
5d274cb
 
 
f35f208
 
5d274cb
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from fastapi import FastAPI
import uvicorn

app = FastAPI()

@app.get("/")
async def root():
    return {"message": "Server is running"}

@app.get("/health")
async def health_check():
    return {"status": "healthy"}

if __name__ == "__main__":
    uvicorn.run(
        "main.app:app",
        host="0.0.0.0",
        port=7680,
        workers=1
    )