We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3ae1111 + 685a01e commit aafd0fdCopy full SHA for aafd0fd
1 file changed
app/controllers/attachinary/cors_controller.rb
@@ -1,9 +1,10 @@
1
module Attachinary
2
class CorsController < Attachinary::ApplicationController
3
- respond_to :json
4
5
def show
6
- respond_with request.query_parameters, :content_type => 'text/plain'
+ respond_to do |format|
+ format.json { render json: request.query_parameters, content_type: "text/plain" }
7
+ end
8
end
9
10
0 commit comments