Spaces:
Running
Running
File size: 459 Bytes
b6dcc89 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
from fastapi import FastAPI
# Import all your routers
from app.routers import random_number_generator, help, calculator # <-- Import the new router
app = FastAPI()
# Include all routers
app.include_router(random_number_generator.router)
app.include_router(help.router)
app.include_router(calculator.router) # <-- Include the new router
@app.get("/")
def greet_json():
return {"Hello": "World!", "message": "Go to /docs to see all available endpoints!"} |