gitlab-org--gitlab-foss/app/controllers/help_controller.rb

16 lines
287 B
Ruby
Raw Normal View History

class HelpController < ApplicationController
def index
end
2013-06-06 10:19:23 +00:00
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
end