mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-08 18:35:46 +08:00
10 lines
300 B
Ruby
10 lines
300 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Admin::AdminNoticesController < Admin::StaffController
|
|
def destroy
|
|
AdminNotices::Dismiss.call(service_params) do
|
|
on_success { render(json: success_json) }
|
|
on_failure { render(json: failed_json, status: :unprocessable_entity) }
|
|
end
|
|
end
|
|
end
|