Sha256: 90f1a1463b8dcf2cc447f745f8269b97fe26de5b14f19b7be2644a0c5cea37c5

Contents?: true

Size: 376 Bytes

Versions: 13

Compression:

Stored size: 376 Bytes

Contents

require 'locomotive/misc/api_documentation'

module Locomotive
  module Api
    class DocumentationController < ApplicationController

      before_filter :require_account

      def show
        render text: Locomotive::Misc::ApiDocumentation.generate
      end

      protected

      def require_account
        authenticate_locomotive_account!
      end

    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
locomotive_cms-2.5.7 app/controllers/locomotive/api/documentation_controller.rb
locomotive_cms-2.5.6 app/controllers/locomotive/api/documentation_controller.rb
locomotive_cms-2.5.6.rc2 app/controllers/locomotive/api/documentation_controller.rb
locomotive_cms-2.5.6.rc1 app/controllers/locomotive/api/documentation_controller.rb
locomotive_cms-2.5.5 app/controllers/locomotive/api/documentation_controller.rb
locomotive_cms-2.5.4 app/controllers/locomotive/api/documentation_controller.rb
locomotive_cms-2.5.3 app/controllers/locomotive/api/documentation_controller.rb
locomotive_cms-2.5.2 app/controllers/locomotive/api/documentation_controller.rb
locomotive_cms-2.5.1 app/controllers/locomotive/api/documentation_controller.rb
locomotive_cms-2.5.0 app/controllers/locomotive/api/documentation_controller.rb
locomotive_cms-2.5.0.rc3 app/controllers/locomotive/api/documentation_controller.rb
locomotive_cms-2.5.0.rc2 app/controllers/locomotive/api/documentation_controller.rb
locomotive_cms-2.5.0.rc1 app/controllers/locomotive/api/documentation_controller.rb