Skip to content

Commit

Permalink
Fix url stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
hschne committed Dec 28, 2023
1 parent d7ccad2 commit a374ff2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions app/views/uploads/preview.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,16 @@

<div id="curl" class="py-4" data-tabs-target="panel">
<%= render "components/code" do %>
curl
curl -L
<%= Rails.application.routes.url_helpers.download_url(@upload) %>.json \<br>
&nbsp;&nbsp;-L -H "Accept: application/json" &gt; "<%= @upload.file.filename.to_s %>"<br>
&nbsp;&nbsp; -H "Accept: application/json" &gt; "<%= @upload.file.filename.to_s %>"<br>
<% end %>
</div>

<div id="httpie" class="hidden py-4" data-tabs-target="panel">
<%= render "components/code" do %>
http -d
<%= Rails.application.routes.url_helpers.download_url(@upload) %>
.json
<%= Rails.application.routes.url_helpers.download_url(@upload) %>.json
<% end %>
</div>

Expand Down

0 comments on commit a374ff2

Please sign in to comment.