Skip to content

Commit

Permalink
ci: add root endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
montoyaobeso committed Jun 10, 2024
1 parent 88db007 commit 5bb149e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions server.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
import fastapi, uvicorn
from fastapi.responses import JSONResponse
import os

api = fastapi.FastAPI()


@api.get("/")
async def root():
"""Get a welcome messge from the API."""
return JSONResponse(
content={"message": "Welcome to transactions email generator API."},
status_code=200,
)


...

if __name__ == "__main__":
Expand Down

0 comments on commit 5bb149e

Please sign in to comment.