You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
326 B

  1. # frozen_string_literal: true
  2. class Api::Web::SettingsController < ApiController
  3. respond_to :json
  4. before_action :require_user!
  5. def update
  6. setting = ::Web::Setting.where(user: current_user).first_or_initialize(user: current_user)
  7. setting.data = params[:data]
  8. setting.save!
  9. render_empty
  10. end
  11. end