From a66e172ca8d6bd59c57bc9563bb165ddad67ef82 Mon Sep 17 00:00:00 2001 From: Dylan Bolger Date: Mon, 17 Aug 2026 17:26:30 -0500 Subject: kill swagger/oas, log output --- app/main.py | 6 +++++- app/services/images.py | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'app') diff --git a/app/main.py b/app/main.py index fac1daa..d4b5046 100644 --- a/app/main.py +++ b/app/main.py @@ -4,7 +4,11 @@ from fastapi.templating import Jinja2Templates from .routers import web from .services import images -app = FastAPI() +app = FastAPI( + docs_url=None, + redoc_url=None, + openapi_url=None + ) app.state.image_service = images app.state.templates = Jinja2Templates(directory="./app/templates") app.include_router(web.router) diff --git a/app/services/images.py b/app/services/images.py index ac4984a..ab4e0b8 100644 --- a/app/services/images.py +++ b/app/services/images.py @@ -16,5 +16,6 @@ def cache_images(): def get_all_images(): if not image_cache: cache_images() + print(f"returning {len(image_cache)} images") shuffled = random.sample(list(image_cache), k=len(image_cache)) return shuffled -- cgit v1.2.3