mirror of
https://github.com/discourse/discourse.git
synced 2024-12-21 05:53:42 +08:00
11 lines
266 B
Ruby
11 lines
266 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
class Admin::AdminNoticesController < Admin::StaffController
|
||
|
def destroy
|
||
|
AdminNotices::Dismiss.call do
|
||
|
on_success { render(json: success_json) }
|
||
|
on_failure { render(json: failed_json, status: 422) }
|
||
|
end
|
||
|
end
|
||
|
end
|