2017-10-01 07:05:42 +11:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class Api::V1::Apps::CredentialsController < Api::BaseController
|
|
|
|
def show
|
2023-10-18 23:10:07 +11:00
|
|
|
return doorkeeper_render_error unless valid_doorkeeper_token?
|
|
|
|
|
2024-05-17 23:46:12 +10:00
|
|
|
render json: doorkeeper_token.application, serializer: REST::ApplicationSerializer
|
2017-10-01 07:05:42 +11:00
|
|
|
end
|
|
|
|
end
|