From 40468236f275e6af09e092cc609796bb783406de Mon Sep 17 00:00:00 2001 From: Vasilije <8619304+Vasilije1990@users.noreply.github.com> Date: Sun, 11 Feb 2024 22:12:00 +0100 Subject: [PATCH] Update api.py Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- api.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/api.py b/api.py index 90273c39e..48a7f6c21 100644 --- a/api.py +++ b/api.py @@ -38,7 +38,13 @@ from fastapi import Depends config = Config() config.load() - +@app.get( + "/", +) +""" +Root endpoint that returns a welcome message. +""" +async def root(): class ImageResponse(BaseModel): success: bool message: str