File size: 329 Bytes
78c556a 4a8147e 7e39815 78c556a 4a8147e 7e39815 4a8147e 78c556a 4a8147e |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
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)
@app.get("/")
def root():
return {"message": "Welcome to the API!"} |