from django.urls import include, path
from rest_framework.routers import SimpleRouter

from .views_engagement import AnnouncementViewSet
from .views_employee_engagement import MyAnnouncementsViewSet


# Admin / HR notification API
admin_router = SimpleRouter()
admin_router.register(
    r"",
    AnnouncementViewSet,
    basename="notification-admin",
)

# Employee notification API
employee_router = SimpleRouter()
employee_router.register(
    r"",
    MyAnnouncementsViewSet,
    basename="notification-employee",
)

urlpatterns = [
    path(
        "api/notifications/",
        include(admin_router.urls),
    ),
    path(
        "employee/notifications/",
        include(employee_router.urls),
    ),
]

