balance-application/app.py

12 lines
239 B
Python
Raw Normal View History

2024-09-10 04:14:09 +00:00
from routes.balance import router
from fastapi import FastAPI, Response
2024-09-10 01:31:17 +00:00
app = FastAPI()
2024-09-10 04:14:09 +00:00
@app.get("/")
def index(resp: Response):
resp.headers.setdefault("Content-Type", "text")
2024-09-10 01:31:17 +00:00
return "Hello, World!"
app.include_router(router=router)