diff --git a/app/views/uploads/new.html.erb b/app/views/uploads/new.html.erb index e07aa71..3792c48 100644 --- a/app/views/uploads/new.html.erb +++ b/app/views/uploads/new.html.erb @@ -18,7 +18,9 @@

Upload via API

Upload files using Data Dead Drop's API. We recommend your favourite HTTP client. For additional information, please refer to the - API documentation. + <%= render "components/link", + name: "API Documentation", + url: "https://github.com/hschne/data-dead-drop#api-documentation" %>

Wget -
diff --git a/config/initializers/default_url_options.rb b/config/initializers/default_url_options.rb index ec902ba..987eb54 100644 --- a/config/initializers/default_url_options.rb +++ b/config/initializers/default_url_options.rb @@ -1,9 +1,9 @@ # frozen_string_literal: true hosts = { - development: 'localhost:3000', - test: 'localhost:3000', - production: 'datadeaddrop.com' + development: 'http://localhost:3000', + test: 'http://localhost:3000', + production: 'https://datadeaddrop.com' }.freeze Rails.application.routes.default_url_options[:host] = hosts[Rails.env.to_sym]