age-better-curd / main.py
Abineshkumar's picture
Create main.py
c83de6e verified
raw
history blame contribute delete
386 Bytes
from fastapi import FastAPI
from routes import users
from config import db
app = FastAPI()
app.include_router(users.router)
@app.get("/")
def read_root():
users= db.collection("users").document("YLTkM3Hs4tOg4wjsZLn7")
print(users.get()._data)
return {"message": "User Management System with Firebase is running",
"users": users.get()._data
}