Sourabh
unknown
plain_text
4 years ago
417 B
6
Indexable
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()
Editor is loading...