Sourabh

mail@pastecode.io avatar
unknown
plain_text
3 years ago
417 B
3
Indexable
Never
def init() -> None:
   db = SessionLocal()
#call init script related to DB
   init_db(db)
#call init script related to input
   init_files()

def include_router(app):
   app.include_router(ormar_router)

def start_application():
   app = FastAPI(title=settings.PROJECT_NAME,version=settings.PROJECT_VERSION)
   include_router(app)
   return app 
# call to init step 
init()
app = start_application()