logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

credentials_controller.rb (294B)


  1. # frozen_string_literal: true
  2. class Api::V1::Apps::CredentialsController < Api::BaseController
  3. before_action -> { doorkeeper_authorize! :read }
  4. respond_to :json
  5. def show
  6. render json: doorkeeper_token.application, serializer: REST::StatusSerializer::ApplicationSerializer
  7. end
  8. end