fastapi_mongoDB / app.py
PrabhuKiranKonda's picture
added project files and dockerfile
cb7f5fc
raw
history blame
296 Bytes
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"}