Method: Satis::UserDataController#show
- Defined in:
- app/controllers/satis/user_data_controller.rb
#show ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'app/controllers/satis/user_data_controller.rb', line 3 def show key = request.url.split('/user_data/').last data = Satis.config.current_user.call.user_data.keyed(key) if data.id.present? render json: data.data, status: 200 else render json: {}, status: 404 end end |