From fd06030f03ac77bc3cf37d45f298d2e64cd94be6 Mon Sep 17 00:00:00 2001 From: abdulhade Date: Fri, 4 Apr 2025 20:35:40 +0300 Subject: [PATCH] Added a `/ping` endpoint. --- main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.py b/main.py index eabb5a1..8cfdaf1 100644 --- a/main.py +++ b/main.py @@ -17,3 +17,7 @@ async def lifespan(app: FastAPI): app = FastAPI(lifespan=lifespan) app.include_router(router=api_router) + +@app.get('/ping') +async def ping(): + return 'Ok'