2023-01-18 15:25:22 +02:00
|
|
|
from os import makedirs
|
2023-01-16 14:23:18 +02:00
|
|
|
from modules.app import app
|
|
|
|
from modules.utils import configGet
|
|
|
|
from modules.extensions_loader import dynamic_import_from_src
|
2023-01-17 11:54:12 +02:00
|
|
|
from fastapi.responses import FileResponse, Response
|
|
|
|
from starlette.status import HTTP_200_OK
|
2023-01-16 14:23:18 +02:00
|
|
|
|
|
|
|
makedirs(configGet("data", "locations"), exist_ok=True)
|
|
|
|
|
2023-01-17 11:54:12 +02:00
|
|
|
@app.get("/check", response_class=Response, include_in_schema=False)
|
|
|
|
async def check():
|
2023-01-19 22:10:04 +02:00
|
|
|
return Response(status_code=HTTP_200_OK)
|
2023-01-17 11:54:12 +02:00
|
|
|
|
2023-01-16 14:23:18 +02:00
|
|
|
@app.get("/favicon.ico", response_class=FileResponse, include_in_schema=False)
|
|
|
|
async def favicon():
|
|
|
|
return FileResponse("favicon.ico")
|
|
|
|
|
|
|
|
#=================================================================================
|
|
|
|
dynamic_import_from_src("extensions", star_import = True)
|
|
|
|
#=================================================================================
|