Hello world

First open source release of Campfire 🎉
This commit is contained in:
Kevin McConnell
2025-08-15 11:02:42 +01:00
commit df76a227dc
664 changed files with 36235 additions and 0 deletions
@@ -0,0 +1,13 @@
class Users::PushSubscriptions::TestNotificationsController < ApplicationController
before_action :set_push_subscription
def create
@push_subscription.notification(title: "Campfire Test", body: Random.uuid, path: user_push_subscriptions_url).deliver
redirect_to user_push_subscriptions_url
end
private
def set_push_subscription
@push_subscription = Current.user.push_subscriptions.find(params[:push_subscription_id])
end
end