Skip to content

Commit

Permalink
Fix content type for full database response
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Lenochxd committed Sep 9, 2024
1 parent 61de7c6 commit c2d5588
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c2d5588

Please sign in to comment.