Chore: Apple site association file for deep linking (#805)
This commit is contained in:
6
app/controllers/apple_app_controller.rb
Normal file
6
app/controllers/apple_app_controller.rb
Normal 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
|
||||
@@ -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
|
||||
11
app/views/apple_app/site_association.html.erb
Normal file
11
app/views/apple_app/site_association.html.erb
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"applinks": {
|
||||
"apps": [],
|
||||
"details": [
|
||||
{
|
||||
"appID": "<%= ENV['IOS_APP_ID'] %>",
|
||||
"paths": [ "NOT /super_admin/*", "*" ]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user