Class: MediafluxInfoController

Inherits:
ApplicationController show all
Defined in:
app/controllers/mediaflux_info_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#add_breadcrumb, #after_sign_in_path_for, #breadcrumbs, #new_session_path, #require_admin_user

Instance Method Details

#indexObject

GET /mediaflux_infos or /mediaflux_infos.json



4
5
6
7
8
9
10
11
# File 'app/controllers/mediaflux_info_controller.rb', line 4

def index
  version_request = Mediaflux::VersionRequest.new(session_token: current_user.mediaflux_session)
  @mf_version = version_request.version
  respond_to do |format|
    format.html
    format.json { render json: @mf_version }
  end
end