@@ -26,6 +26,9 @@ def checkDeps():
|
|||||||
|
|
||||||
@asynccontextmanager
|
@asynccontextmanager
|
||||||
async def lifespan(app: FastAPI):
|
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()
|
checkDeps()
|
||||||
create_db_and_tables()
|
create_db_and_tables()
|
||||||
create_first_user(db=get_db_session())
|
create_first_user(db=get_db_session())
|
||||||
|
|||||||
Reference in New Issue
Block a user