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

graphql_helper.rb « routing « helpers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2e1d084e3ccd147da44d3819bf5c01b1aba333e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

module Routing
  module GraphqlHelper
    def graphql_etag_pipeline_path(pipeline)
      [api_graphql_path, "pipelines/id/#{pipeline.id}"].join(':')
    end

    def graphql_etag_pipeline_sha_path(sha)
      [api_graphql_path, "pipelines/sha/#{sha}"].join(':')
    end

    def graphql_etag_project_on_demand_scan_counts_path(project)
      [api_graphql_path, "on_demand_scan/counts/#{project.full_path}"].join(':')
    end
  end
end