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

personal_access_token_with_details.rb « entities « api « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5654bd4a1e1f2be571ee344307b1fd1b072c684d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

module API
  module Entities
    class PersonalAccessTokenWithDetails < Entities::PersonalAccessToken
      expose :expired?, as: :expired
      expose :expires_soon?, as: :expires_soon
      expose :revoke_path do |token|
        Gitlab::Routing.url_helpers.revoke_profile_personal_access_token_path(token)
      end
    end
  end
end