Skip to content

Commit

Permalink
Change url options, fix link
Browse files Browse the repository at this point in the history
  • Loading branch information
hschne committed Dec 28, 2023
1 parent 8a7dd4f commit d7ccad2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 3 additions & 1 deletion app/views/uploads/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
<h1 class="font-semibold text-4xl mb-8">Upload via API</h1>
<p class="mb-8">Upload files using Data Dead Drop's API. We recommend your favourite HTTP
client. For additional information, please refer to the
<a href="https://github.com/hschne/data-dead-drop#api-documentation">API documentation</a>.
<%= render "components/link",
name: "API Documentation",
url: "https://github.com/hschne/data-dead-drop#api-documentation" %>
</p>

<div
Expand Down
1 change: 0 additions & 1 deletion app/views/uploads/preview.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@
>
Wget
</a>

</nav>

<div id="curl" class="py-4" data-tabs-target="panel">
Expand Down
6 changes: 3 additions & 3 deletions config/initializers/default_url_options.rb
Original file line number Diff line number Diff line change
@@ -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]

0 comments on commit d7ccad2

Please sign in to comment.