Skip to content

Commit

Permalink
Trying explicit respond_to at the controller and action level - hopef…
Browse files Browse the repository at this point in the history
…ully enough in conjunction to the route settings
  • Loading branch information
dgcliff committed Aug 29, 2024
1 parent bb45d18 commit c891c6a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.153
0.0.154
1 change: 1 addition & 0 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

class ApplicationController < ActionController::API
respond_to :json
end
1 change: 1 addition & 0 deletions app/controllers/resources_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ def preview
@resource.mods_json = File.read(path)
@resource.decorate
# Need to figure out how to clean up any residual objects
respond_to :html
end
end

0 comments on commit c891c6a

Please sign in to comment.