summaryrefslogtreecommitdiff
path: root/app/controllers/koding_controller.rb
blob: 72aa9d4f17f34a98969696eb14758658a0343b8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

class KodingController < ApplicationController
  before_action :check_integration!
  layout 'koding'

  def index
    path = File.join(Rails.root, 'doc/user/project/koding.md')
    @markdown = File.read(path)
  end

  private

  def check_integration!
    render_404 unless Gitlab::CurrentSettings.koding_enabled?
  end
end