2020-12-20 17:27:24 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class Api::Web::ChatSettingsController < Api::Web::BaseController
|
|
|
|
before_action :require_user!
|
|
|
|
|
|
|
|
def update
|
2020-12-21 23:30:46 +00:00
|
|
|
# setting.data = params[:data]
|
|
|
|
# setting.save!
|
2020-12-20 17:27:24 +00:00
|
|
|
|
|
|
|
# todo validate all data objects
|
|
|
|
|
|
|
|
render_empty_success
|
|
|
|
end
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def setting
|
2020-12-21 23:30:46 +00:00
|
|
|
# @_setting ||= ::Web::Setting.where(user: current_user).first_or_initialize(user: current_user)
|
2020-12-20 17:27:24 +00:00
|
|
|
end
|
|
|
|
end
|