Sha256: bdd7f6c96190a4b098eeece9819ef1c84f04d3d80fab190a2af914ea81fb548a

Contents?: true

Size: 380 Bytes

Versions: 3

Compression:

Stored size: 380 Bytes

Contents

class InfoController < ApplicationController
    # This is a model-less controller just to render che swagger page using a custom layout
    layout 'swagger'
    def swagger
        uri = URI(request.url)
        @swagger_json_url = "#{uri.scheme}://#{uri.host}#{":#{uri.port}" if uri.port.present?}#{ENV.fetch("RAILS_RELATIVE_URL_ROOT", "")}/api/v2/info/swagger.json"
    end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
thecore_ui_commons-3.2.15 app/controllers/info_controller.rb
thecore_ui_commons-3.2.14 app/controllers/info_controller.rb
thecore_ui_commons-3.2.13 app/controllers/info_controller.rb