Retrospring/app/controllers/settings/push_notifications_controll...

10 lines
222 B
Ruby

# frozen_string_literal: true
class Settings::PushNotificationsController < ApplicationController
before_action :authenticate_user!
def index
@subscriptions = current_user.web_push_subscriptions.active
end
end