Skip to content

Commit

Permalink
Fix apple links and root redirect (#14)
Browse files Browse the repository at this point in the history
* fix apple links and redirect root to ssd ag

* get root redirect url from env and update sample env
  • Loading branch information
celuchmarek authored Jun 21, 2024
1 parent b6a701c commit 85aa546
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
9 changes: 8 additions & 1 deletion .env.sample
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
AVM_MICROSERVICE_HOST=localhost:7200
AVM_MICROSERVICE_HOST=localhost:7200
FIREBASE_CREDENTIALS=
FIREBASE_PROJECT_ID=
ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY=
ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY=
ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT=
RAILS_LOG_LEVEL=
ROOT_URL_REDIRECT=
4 changes: 2 additions & 2 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@
end
end

get '/apple-app-site-association' => 'apple#apple_app_site_association'
get '/.well-known/apple-app-site-association' => 'apple#apple_app_site_association'
# Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html

# Reveal health status on /up that returns 200 if the app boots with no exceptions, otherwise 500.
# Can be used by load balancers and uptime monitors to verify that the app is live.
get "up" => "rails/health#show", as: :rails_health_check

# Defines the root path route ("/")
# root "posts#index"
root to: redirect(ENV.fetch("ROOT_URL_REDIRECT", "/api/v1/"), status: 302)
end

0 comments on commit 85aa546

Please sign in to comment.