from fastapi import FastAPI | |
from routes.hello import router as hello_router | |
from routes.subscription import router as subscription_router | |
app = FastAPI() | |
# Incluindo a rota separada | |
app.include_router(hello_router) | |
app.include_router(subscription_router) | |
def root(): | |
return {"message": "Welcome to the API!"} |