mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: Site settings for linking with iOS/Android native apps
- Adds support for iOS Universal Links via an `apple-app-site-association` endpoint Adds support for Google Digital Asset Links at the `.well-known/assetlinks.json` endpoint
This commit is contained in:
@@ -12,6 +12,16 @@ class MetadataController < ApplicationController
|
||||
render template: "metadata/opensearch.xml"
|
||||
end
|
||||
|
||||
def app_association_android
|
||||
raise Discourse::NotFound unless SiteSetting.app_association_android.present?
|
||||
render plain: SiteSetting.app_association_android, content_type: 'application/json'
|
||||
end
|
||||
|
||||
def app_association_ios
|
||||
raise Discourse::NotFound unless SiteSetting.app_association_ios.present?
|
||||
render plain: SiteSetting.app_association_ios, content_type: 'application/json'
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def default_manifest
|
||||
|
||||
Reference in New Issue
Block a user