From c2d5588004ec7211be6470a4a574f1a054292dad Mon Sep 17 00:00:00 2001 From: Lenoch <81lennoch@gmail.com> Date: Mon, 9 Sep 2024 13:13:03 +0200 Subject: [PATCH] Fix content type for full database response Updated the `/nx/full` and `/nx/all` routes to return the full database with the correct `application/json` media type, ensuring proper handling of the JSON response. --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 404ec21..d886ed4 100644 --- a/main.py +++ b/main.py @@ -239,7 +239,7 @@ async def get_nx(platform: str, tid: str, asset_type: str = None, screen_id = 1) if tid in ['FULL', 'ALL']: # Handle full/all JSON file request - return Response(status_code=200, content=get_fulldb()) + return Response(content=get_fulldb(), media_type="application/json") # /nx/base/0100A0D004FB0000