diff options
| author | Dylan Bolger <dylan.bolger00@gmail.com> | 2026-08-17 17:26:30 -0500 |
|---|---|---|
| committer | Dylan Bolger <dylan.bolger00@gmail.com> | 2026-08-17 17:26:30 -0500 |
| commit | a66e172ca8d6bd59c57bc9563bb165ddad67ef82 (patch) | |
| tree | 03564631302218789601f8a48fc929d96a44ef70 | |
| parent | cb06c5b689db596c6d27dd8f2777e16e56250695 (diff) | |
| download | photoblog-a66e172ca8d6bd59c57bc9563bb165ddad67ef82.tar.xz photoblog-a66e172ca8d6bd59c57bc9563bb165ddad67ef82.zip | |
kill swagger/oas, log output
| -rw-r--r-- | app/main.py | 6 | ||||
| -rw-r--r-- | app/services/images.py | 1 |
2 files changed, 6 insertions, 1 deletions
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 |
