From 038d2926db618f109d9c0a97b9d45664d81702ab Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Thu, 1 Sep 2022 14:54:45 -0500 Subject: [PATCH] Link to Apple site association docs --- rails/respond-with-json-regardless-of-content-type.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rails/respond-with-json-regardless-of-content-type.md b/rails/respond-with-json-regardless-of-content-type.md index 128ba94..d651489 100644 --- a/rails/respond-with-json-regardless-of-content-type.md +++ b/rails/respond-with-json-regardless-of-content-type.md @@ -1,7 +1,8 @@ # Respond With JSON Regardless Of Content Type Let's say you want to serve some JSON from an endpoint (for example, you might -be serving the `apple-app-site-association` file for iOS Universal Links). +be serving [the `apple-app-site-association` file for iOS Universal +Links](https://developer.apple.com/documentation/xcode/supporting-associated-domains)). Regardless of whether the endpoint is requested as JSON (`application/json`), HTML (`text/html`), or something else (`plain/text`), you want to respond with JSON.