Initial commit

This commit is contained in:
zhongjin
2020-06-15 10:58:47 +08:00
commit 4f1dfe7564
8590 changed files with 1516878 additions and 0 deletions
@@ -0,0 +1,19 @@
module Carto
module Api
module Public
class UsersController < Carto::Api::Public::ApplicationController
ssl_required
def me_public
presentation = if request_api_key.user_data.try(:include?, 'profile')
UserPublicProfilePresenter.new(request_api_key.user).to_hash
else
UserPublicPresenter.new(request_api_key.user).to_hash
end
render(json: presentation)
end
end
end
end
end