From e334e711cc910aa9183b5bd4a484825036dd9b06 Mon Sep 17 00:00:00 2001 From: "Waylon S. Walker" Date: Mon, 21 Oct 2024 07:44:46 -0500 Subject: [PATCH] sort accepts --- src/fastapi_dynamic_response/constant.py | 40 +++++++++++++----------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/src/fastapi_dynamic_response/constant.py b/src/fastapi_dynamic_response/constant.py index 1f28e56..4bb76f6 100644 --- a/src/fastapi_dynamic_response/constant.py +++ b/src/fastapi_dynamic_response/constant.py @@ -1,30 +1,32 @@ ACCEPT_TYPES = { - "application/json": "JSON", - "text/html": "html", "application/html": "html", - "text/html-partial": "html", "application/html-partial": "html", - "text/rich": "rtf", - "application/rtf": "rtf", - "text/rtf": "rtf", - "text/rich": "rtf", - "text/plain": "text", - "application/text": "text", - "application/plain": "text", + "application/json": "JSON", "application/markdown": "markdown", "application/md": "markdown", - "text/markdown": "markdown", - "text/md": "markdown", - "text/x-markdown": "markdown", - "image/png": "png", "application/pdf": "pdf", - "json": "JSON", + "application/plain": "text", + "application/rtf": "rtf", + "application/text": "text", "html": "html", - "rtf": "rtf", - "plain": "text", - "text": "text", + "image/png": "png", + "json": "JSON", "markdown": "markdown", "md": "markdown", - "png": "png", "pdf": "pdf", + "plain": "text", + "png": "png", + "rich": "rtf", + "richtext": "rtf", + "richtextformat": "rtf", + "rtf": "rtf", + "text": "text", + "text/html": "html", + "text/html-partial": "html", + "text/markdown": "markdown", + "text/md": "markdown", + "text/plain": "text", + "text/rich": "rtf", + "text/rtf": "rtf", + "text/x-markdown": "markdown", }