You've already forked RekomenciBackend
feat(): push notifications via firebase admin
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
from dishka import BaseScope, Provider, Scope, provide
|
||||
|
||||
from template_project.adapters.notifications.fcm import FCMNotificationService
|
||||
from template_project.application.common.notifications.service import NotificationService
|
||||
|
||||
|
||||
class NotificationServiceProvider(Provider):
|
||||
scope: BaseScope | None = Scope.APP
|
||||
|
||||
@provide
|
||||
def notification_service(self) -> NotificationService:
|
||||
return FCMNotificationService()
|
||||
Reference in New Issue
Block a user