PhotosAPI/photos_api.py

17 lines
600 B
Python
Raw Normal View History

2022-12-20 02:22:32 +02:00
from os import makedirs, sep
from modules.app import app
from modules.utils import *
from modules.extensions_loader import dynamic_import_from_src
from fastapi.responses import FileResponse
makedirs(f"data{sep}users", exist_ok=True)
@app.get("/favicon.ico", response_class=FileResponse, include_in_schema=False)
async def favicon():
return FileResponse("favicon.ico")
#=================================================================================
2022-12-20 12:37:32 +02:00
dynamic_import_from_src("extensions", star_import = True)
2022-12-20 02:22:32 +02:00
#=================================================================================