Spaces:
Sleeping
Sleeping
File size: 386 Bytes
fe96ff4 3389675 fe96ff4 3389675 50f635a 3389675 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
import os
from fastapi import FastAPI
from fastapi.responses import JSONResponse
o = os.getenv("OS_QL")
print(f"Secret here: {o}")
app = FastAPI()
@app.get("/")
async def home():
print("Fetch base")
return JSONResponse(content={"message": "running"})
@app.get("/ping")
async def ping():
print("Received ping request")
return JSONResponse(content={"message": "pong"}) |