from rest_framework import routers
from .views import *
from django.urls import path, include

router = routers.DefaultRouter()
router.register('paystack', PaystackPlanViewSet)
router.register('paystack-subscription', SubscriptionViewSet)
router.register('paystack-history', SubscriptionHistoryViewSet)
router.register('testimonials', TestimonialViewSet)
router.register('faq', FAQViewSet)

urlpatterns = [
    path('', include(router.urls)),
    path('email', Emailer.as_view()),
    # path('paystack/initialize', initiatePaystack),
    path('notify/register-device', addDevice),
    path('notify/remove-device', addDevice),
    path('notify/push-single', singlePush),
    path('notify/push-bulk', bulkPush),
    path('notify/push-all', allPush)
]
