Sha256: 61e153269b043d0d6512df4c5a8fdd91adf8a9a088d4bc6e63a475975772cb63
Contents?: true
Size: 479 Bytes
Versions: 25
Compression:
Stored size: 479 Bytes
Contents
# frozen_string_literal: true module Decidim # The controller to handle the subscriptions to push notifications class NotificationsSubscriptionsController < Decidim::ApplicationController def create Decidim::NotificationsSubscriptionsPersistor.new(current_user).add_subscription(params) head :ok end def destroy Decidim::NotificationsSubscriptionsPersistor.new(current_user).delete_subscription(params[:auth]) head :ok end end end
Version data entries
25 entries across 25 versions & 1 rubygems