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

access_tokens_controller.rb « settings « projects « controllers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: af1527ba6a366dc7cd58bbe45d7612d0a4b3c2ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# frozen_string_literal: true

module Projects
  module Settings
    class AccessTokensController < Projects::ApplicationController
      include RenderAccessTokens
      include AccessTokensActions

      layout 'project_settings'
      feature_category :system_access

      alias_method :resource, :project

      def resource_access_tokens_path
        namespace_project_settings_access_tokens_path
      end

      private

      def represent(tokens)
        ::ProjectAccessTokenSerializer.new.represent(tokens, project: resource)
      end
    end
  end
end