debian-mirror-gitlab/app/serializers/personal_access_token_entity.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
315 B
Ruby
Raw Normal View History

2022-08-27 11:52:29 +05:30
# frozen_string_literal: true
# rubocop: disable Gitlab/NamespacedClass
class PersonalAccessTokenEntity < API::Entities::PersonalAccessToken
include Gitlab::Routing
expose :revoke_path do |token, options|
revoke_profile_personal_access_token_path(token)
end
end
# rubocop: enable Gitlab/NamespacedClass