Files
fastfood/fastfood/app.py

21 lines
392 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

from fastapi import FastAPI
from fastfood.routes import router
async def generate_test_data():
"""
Создание БД и наполнение ее данными
"""
pass
def create_app():
"""
Создание экземпляра приложения FastAPI и врзврат его
"""
app = FastAPI()
app.include_router(router)
return app