Sha256: f878f53cb0ed7ab2fb623ea3de39e3456bcf8a11ca6bbd5d8154065449ffd1b3

Contents?: true

Size: 200 Bytes

Versions: 11

Compression:

Stored size: 200 Bytes

Contents

class Api::V1::MeEndpoint < Api::V1::Root
  resource :me do
    oauth2
    get "/" do
      render Api::V1::UserSerializer.new(current_user, include: [:teams, :memberships]).to_json
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
bullet_train-api-1.0.13 app/controllers/api/v1/me_endpoint.rb
bullet_train-api-1.0.12 app/controllers/api/v1/me_endpoint.rb
bullet_train-api-1.0.8 app/controllers/api/v1/me_endpoint.rb
bullet_train-api-1.0.7 app/controllers/api/v1/me_endpoint.rb
bullet_train-api-1.0.6 app/controllers/api/v1/me_endpoint.rb
bullet_train-api-1.0.5 app/controllers/api/v1/me_endpoint.rb
bullet_train-api-1.0.4 app/controllers/api/v1/me_endpoint.rb
bullet_train-api-1.0.3 app/controllers/api/v1/me_endpoint.rb
bullet_train-api-1.0.2 app/controllers/api/v1/me_endpoint.rb
bullet_train-api-1.0.1 app/controllers/api/v1/me_endpoint.rb
bullet_train-api-1.0.0 app/controllers/api/v1/me_endpoint.rb