From a91d4aac70e733c945c6bfe3af5d698265d16992 Mon Sep 17 00:00:00 2001 From: Robert Zondervan Date: Thu, 14 Sep 2023 14:18:19 +0200 Subject: [PATCH] Add xlsx and csv to content types on admin endpoints --- api/src/Controller/ZZController.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/src/Controller/ZZController.php b/api/src/Controller/ZZController.php index eb3587cc2..c726dc7b5 100644 --- a/api/src/Controller/ZZController.php +++ b/api/src/Controller/ZZController.php @@ -159,6 +159,10 @@ private function getAcceptType(Request $request): string case 'text/xml': case 'application/xml': return 'xml'; + case 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet': + return 'xlsx'; + case 'text/csv': + return 'csv'; case 'text/html': return 'html'; case 'application/vnd.openxmlformats-officedocument.wordprocessingml.document':