@@ -26,6 +26,9 @@ def checkDeps():
|
||||
|
||||
@asynccontextmanager
|
||||
async def lifespan(app: FastAPI):
|
||||
logger.critical("-"*63)
|
||||
logger.critical("---- Documentation is at http://127.0.0.1:8000/api/v1/docs ----")
|
||||
logger.critical("-"*63)
|
||||
checkDeps()
|
||||
create_db_and_tables()
|
||||
create_first_user(db=get_db_session())
|
||||
|
||||
Reference in New Issue
Block a user