mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[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
This commit is contained in:
@ -58,6 +58,11 @@ var HTMLOrActivityPubHeaders = []MIME{
|
||||
AppActivityLDJSON,
|
||||
}
|
||||
|
||||
var HostMetaHeaders = []MIME{
|
||||
AppXMLXRD,
|
||||
AppXML,
|
||||
}
|
||||
|
||||
// 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
|
||||
|
Reference in New Issue
Block a user