AsadCognify commited on
Commit
3389675
·
verified ·
1 Parent(s): 8d0c561

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ from fastapi import FastAPI
2
+ from fastapi.responses import JSONResponse
3
+
4
+ app = FastAPI()
5
+
6
+ @app.get("/ping")
7
+ async def ping():
8
+ print("Received ping request")
9
+ return JSONResponse(content={"message": "pong"})