fix: Images Using Wrong Content Type (#4441)

This commit is contained in:
Michael Genson
2024-10-25 09:53:42 -05:00
committed by GitHub
parent d48320f0a5
commit f7e595b404
3 changed files with 4 additions and 15 deletions

View File

@@ -4,12 +4,7 @@ from starlette.responses import FileResponse
from mealie.schema.user import PrivateUser
"""
These routes are for development only! These assets are served by Caddy when not
in development mode. If you make changes, be sure to test the production container.
"""
router = APIRouter(prefix="/users", include_in_schema=False)
router = APIRouter(prefix="/users")
@router.get("/{user_id}/{file_name}", response_class=FileResponse)