summaryrefslogtreecommitdiff
path: root/internal/api/util/mime.go
diff options
context:
space:
mode:
authorLibravatar Daenney <daenney@users.noreply.github.com>2023-03-09 18:55:45 +0100
committerLibravatar GitHub <noreply@github.com>2023-03-09 17:55:45 +0000
commita312238e7909c6451e608a91c326ad250dda875c (patch)
tree1395a27178a7ffd78486e3ddb00cd29dfce27cd8 /internal/api/util/mime.go
parent[bug] Handle 410 on webfinger properly (#1601) (diff)
downloadgotosocial-a312238e7909c6451e608a91c326ad250dda875c.tar.xz
[feature] Provide .well-known/host-meta endpoint (#1604)
* [feature] Provide .well-known/host-meta endpoint This adds the host-meta endpoint as Mastodon clients use this to discover the API domain to use when the host and account domains aren't the same. * Address review comments
Diffstat (limited to 'internal/api/util/mime.go')
-rw-r--r--internal/api/util/mime.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/api/util/mime.go b/internal/api/util/mime.go
index 30f0f0d6e..cfdc3b08b 100644
--- a/internal/api/util/mime.go
+++ b/internal/api/util/mime.go
@@ -25,6 +25,7 @@ type MIME string
const (
AppJSON MIME = `application/json`
AppXML MIME = `application/xml`
+ AppXMLXRD MIME = `application/xrd+xml`
AppRSSXML MIME = `application/rss+xml`
AppActivityJSON MIME = `application/activity+json`
AppActivityLDJSON MIME = `application/ld+json; profile="https://www.w3.org/ns/activitystreams"`