Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
12 lines (12 sloc) 360 Bytes
class V1::CloudinaryParamsController < ApplicationController
def show
timestamp = params[:timestamp].to_i
render json: {
timestamp: timestamp,
signature: Digest::SHA1.hexdigest(
"timestamp=#{timestamp}#{Rails.application.secrets.cloudinary_secret}"
),
api_key: Rails.application.secrets.cloudinary_key
}
end
end
You can’t perform that action at this time.