You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
338 B
Python
19 lines
338 B
Python
from fastapi import FastAPI
|
|
|
|
from project.celery_utils import create_celery
|
|
|
|
|
|
def create_app() -> FastAPI:
|
|
app = FastAPI()
|
|
app.celery_app = create_celery()
|
|
|
|
from .users import users_router
|
|
|
|
app.include_router(users_router)
|
|
|
|
@app.get("/")
|
|
async def root():
|
|
return {"message": "Hello World"}
|
|
|
|
return app
|