gitlab-org--gitlab-foss/app/controllers/projects/boards_controller.rb

11 lines
374 B
Ruby
Raw Normal View History

2016-08-01 12:09:41 -04:00
class Projects::BoardsController < Projects::ApplicationController
def show
board = Boards::CreateService.new(project, current_user).execute
2016-08-01 12:09:41 -04:00
respond_to do |format|
format.html
format.json { render json: board.lists.as_json(only: [:id, :list_type, :position], methods: [:title], include: { label: { only: [:id, :title, :color] } }) }
2016-08-01 12:09:41 -04:00
end
end
end