From 38f041cea1ba0cd3492f351353a29aa5b73e2731 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Wed, 31 Jul 2024 16:03:34 +0200 Subject: [feature] Allow users to export data via the settings panel (#3140) * [feature] Allow users to export data via the settings panel * rename/move some stuff --- internal/api/util/negotiate.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'internal/api/util/negotiate.go') diff --git a/internal/api/util/negotiate.go b/internal/api/util/negotiate.go index 5b4f54bc6..4910b7aef 100644 --- a/internal/api/util/negotiate.go +++ b/internal/api/util/negotiate.go @@ -88,6 +88,12 @@ var HostMetaHeaders = []string{ AppXML, } +// CSVHeaders just contains the text/csv +// MIME type, used for import/export. +var CSVHeaders = []string{ + TextCSV, +} + // NegotiateAccept takes the *gin.Context from an incoming request, and a // slice of Offers, and performs content negotiation for the given request // with the given content-type offers. It will return a string representation -- cgit v1.2.3