router.images
: unnecessary "startup"
This commit is contained in:
parent
764c6b16fb
commit
d7818ac93a
1 changed files with 0 additions and 7 deletions
|
@ -3,7 +3,6 @@ from fastapi.responses import StreamingResponse
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
|
|
||||||
from ..core.calendar_config import CalendarConfig, get_calendar_config
|
from ..core.calendar_config import CalendarConfig, get_calendar_config
|
||||||
from ..core.config import get_config
|
|
||||||
from ..core.depends import get_day_image
|
from ..core.depends import get_day_image
|
||||||
from ..core.helpers import api_return_image, load_image
|
from ..core.helpers import api_return_image, load_image
|
||||||
from ._security import user_can_view_day, user_is_admin
|
from ._security import user_can_view_day, user_is_admin
|
||||||
|
@ -11,12 +10,6 @@ from ._security import user_can_view_day, user_is_admin
|
||||||
router = APIRouter(prefix="/images", tags=["images"])
|
router = APIRouter(prefix="/images", tags=["images"])
|
||||||
|
|
||||||
|
|
||||||
@router.on_event("startup")
|
|
||||||
async def startup() -> None:
|
|
||||||
cfg = await get_config()
|
|
||||||
print(cfg.puzzle.solution)
|
|
||||||
|
|
||||||
|
|
||||||
@router.get(
|
@router.get(
|
||||||
"/background",
|
"/background",
|
||||||
response_class=StreamingResponse,
|
response_class=StreamingResponse,
|
||||||
|
|
Loading…
Reference in a new issue