Sha256: 2e931cfe2fa4e334ecb6f8571ebea0722e8707415496ede25074762d9ecb1a7e

Contents?: true

Size: 289 Bytes

Versions: 4

Compression:

Stored size: 289 Bytes

Contents

class Api::V1::MeEndpoint < Api::V1::Root
  resource :me, desc: Api.title(:actions) do
    desc Api.title(:show), &Api.show_desc
    oauth2
    get do
      render current_user, include: [:teams, :memberships], serializer: "Api::V1::UserSerializer", adapter: :attributes
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
bullet_train-api-1.0.17 app/controllers/api/v1/me_endpoint.rb
bullet_train-api-1.0.16 app/controllers/api/v1/me_endpoint.rb
bullet_train-api-1.0.15 app/controllers/api/v1/me_endpoint.rb
bullet_train-api-1.0.14 app/controllers/api/v1/me_endpoint.rb