Welcome to mirror list, hosted at ThFree Co, Russian Federation.

project_repository_storage.rb « entities « api « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0816bebde2c3f89a241896f3eeea141ace47d7ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

module API
  module Entities
    class ProjectRepositoryStorage < Grape::Entity
      include Gitlab::Routing

      expose :disk_path do |project|
        project.repository.disk_path
      end

      expose :id, as: :project_id
      expose :repository_storage, :created_at
    end
  end
end