mirror of
https://github.com/Sea-Haven-Industries/afterhours-shift-manager.git
synced 2026-10-06 10:02:04 +00:00
fix(portal-api): serve portal JSON with an explicit JSON content type
This commit is contained in:
parent
ca44834732
commit
959dbc43d4
1 changed files with 7 additions and 1 deletions
|
|
@ -82,7 +82,13 @@ def create_app() -> Flask:
|
||||||
)
|
)
|
||||||
if status == 204:
|
if status == 204:
|
||||||
return Response(b"", status=204, headers=headers)
|
return Response(b"", status=204, headers=headers)
|
||||||
return Response(encode_body(payload), status=status, headers=headers)
|
return Response(
|
||||||
|
encode_body(payload),
|
||||||
|
status=status,
|
||||||
|
headers=headers,
|
||||||
|
mimetype="application/json",
|
||||||
|
content_type="application/json",
|
||||||
|
)
|
||||||
|
|
||||||
@app.route("/roster", methods=["PUT"])
|
@app.route("/roster", methods=["PUT"])
|
||||||
def roster_put():
|
def roster_put():
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue