2023-03-12 15:50:26 +02:00
|
|
|
from os import makedirs, path
|
2022-12-20 02:22:32 +02:00
|
|
|
from modules.app import app
|
|
|
|
from modules.utils import *
|
2022-12-20 23:24:46 +02:00
|
|
|
from modules.scheduler import scheduler
|
2022-12-20 02:22:32 +02:00
|
|
|
from modules.extensions_loader import dynamic_import_from_src
|
|
|
|
from fastapi.responses import FileResponse
|
|
|
|
|
2023-03-12 15:50:26 +02:00
|
|
|
makedirs(path.join("data", "users"), exist_ok=True)
|
2022-12-20 02:22:32 +02:00
|
|
|
|
|
|
|
|
|
|
|
@app.get("/favicon.ico", response_class=FileResponse, include_in_schema=False)
|
|
|
|
async def favicon():
|
|
|
|
return FileResponse("favicon.ico")
|
|
|
|
|
|
|
|
|
2023-03-12 15:59:13 +02:00
|
|
|
# =================================================================================
|
|
|
|
dynamic_import_from_src("extensions", star_import=True)
|
|
|
|
# =================================================================================
|
2022-12-20 23:24:46 +02:00
|
|
|
|
2023-03-12 15:59:13 +02:00
|
|
|
scheduler.start()
|