debian-mirror-gitlab/app/controllers/projects/settings/access_tokens_controller.rb
2023-01-12 18:35:48 +00:00

25 lines
584 B
Ruby

# frozen_string_literal: true
module Projects
module Settings
class AccessTokensController < Projects::ApplicationController
include RenderAccessTokens
include AccessTokensActions
layout 'project_settings'
feature_category :authentication_and_authorization
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