App / app.py
AsadCognify's picture
Update app.py
fe96ff4 verified
raw
history blame contribute delete
386 Bytes
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"})