Chore: Apple site association file for deep linking (#805)

This commit is contained in:
Sojan Jose
2020-05-03 12:16:11 +05:30
committed by GitHub
parent db6e3fb43e
commit ba1e0dbda0
6 changed files with 35 additions and 9 deletions

View File

@@ -0,0 +1,6 @@
class AppleAppController < ApplicationController
def site_association
site_association_json = render_to_string action: 'site_association', layout: false
send_data site_association_json, filename: 'apple-app-site-association', type: 'application/json'
end
end

View File

@@ -1,9 +0,0 @@
require 'rest-client'
require 'telegram/bot'
class HomeController < ApplicationController
skip_before_action :verify_authenticity_token, only: [:telegram]
skip_before_action :authenticate_user!, only: [:telegram], raise: false
skip_before_action :set_current_user
skip_before_action :check_subscription
end

View File

@@ -0,0 +1,11 @@
{
"applinks": {
"apps": [],
"details": [
{
"appID": "<%= ENV['IOS_APP_ID'] %>",
"paths": [ "NOT /super_admin/*", "*" ]
}
]
}
}