BigW Consortium Gitlab

help_controller.rb 310 Bytes
Newer Older
1 2 3
class HelpController < ApplicationController
  def index
  end
Dmitriy Zaporozhets committed
4 5 6 7 8 9 10 11 12 13 14

  def api
    @category = params[:category]
    @category = "README" if @category.blank?

    if File.exists?(Rails.root.join('doc', 'api', @category + '.md'))
      render 'api'
    else
      not_found!
    end
  end
15 16 17

  def shortcuts
  end
18
end