Spaces:
Runtime error
Runtime error
File size: 387 Bytes
cb7f5fc dac1248 e361083 |
1 2 3 4 5 6 7 8 9 10 11 12 |
from fastapi import FastAPI
from routes.student_routes import router as StudentRouter
app = FastAPI(title="FastAPI and MongoDB")
app.include_router(StudentRouter, tags=["Student"], prefix="/student")
@app.get("/", tags=["Root"])
async def root():
return {"message": "FastAPI and MongoDB",
"Swagger UI (docs)" : "https://prabhukirankonda-fastapi-mongodb.hf.space/docs"}
|