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