Files
xingrin/backend/apps/scan/notifications/urls.py
yyhuni cd5c2b9f11 chore(notifications): remove test notification endpoint
- Remove test notification route from URL patterns
- Delete notifications_test view function and associated logic
- Clean up unused test endpoint that was used for development purposes
- Simplify notification API surface by removing non-production code
2026-01-06 16:57:29 +08:00

27 lines
652 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""
通知系统 URL 配置
"""
from django.urls import path
from . import views
from .views import (
NotificationCollectionView,
NotificationMarkAllAsReadView,
NotificationUnreadCountView,
)
app_name = 'notifications'
urlpatterns = [
# 通知列表
path('', NotificationCollectionView.as_view(), name='list'),
# 未读数量
path('unread-count/', NotificationUnreadCountView.as_view(), name='unread-count'),
# 标记全部已读
path('mark-all-as-read/', NotificationMarkAllAsReadView.as_view(), name='mark-all-as-read'),
]
# WebSocket 实时通知路由在 routing.py 中定义ws://host/ws/notifications/