BigW Consortium Gitlab

milestones_controller.rb 417 Bytes
Newer Older
1
class Dashboard::MilestonesController < Dashboard::ApplicationController
2 3 4 5
  include GlobalMilestones

  before_action :projects
  before_action :milestone, only: [:show]
Douwe Maan committed
6 7

  def index
8
    respond_to do |format|
9 10 11
      format.html do
        @milestones = Kaminari.paginate_array(milestones).page(params[:page])
      end
12
      format.json do
13
        render json: milestones
14 15
      end
    end
Douwe Maan committed
16 17 18 19 20
  end

  def show
  end
end