2022-03-02 08:16:31 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Groups
|
|
|
|
module Settings
|
|
|
|
class AccessTokensController < Groups::ApplicationController
|
2023-01-13 00:05:48 +05:30
|
|
|
include RenderAccessTokens
|
2022-03-02 08:16:31 +05:30
|
|
|
include AccessTokensActions
|
|
|
|
|
|
|
|
layout 'group_settings'
|
2023-05-27 22:25:52 +05:30
|
|
|
feature_category :system_access
|
2022-03-02 08:16:31 +05:30
|
|
|
|
|
|
|
alias_method :resource, :group
|
|
|
|
|
|
|
|
def resource_access_tokens_path
|
|
|
|
group_settings_access_tokens_path
|
|
|
|
end
|
2022-11-25 23:54:43 +05:30
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def represent(tokens)
|
|
|
|
::GroupAccessTokenSerializer.new.represent(tokens, group: resource)
|
|
|
|
end
|
2022-03-02 08:16:31 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|