"""
系统模块URL配置
- App端接口：/api/v1/feedback/*, /api/v1/version/*
- 管理端接口：/api/admin/feedbacks/*
"""
from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .views import FeedbackViewSet, VersionViewSet, AdminFeedbackViewSet

# App端路由
router = DefaultRouter()
router.register('feedback', FeedbackViewSet, basename='feedback')
router.register('version', VersionViewSet, basename='version')

urlpatterns = [
    path('', include(router.urls)),
]

# 管理端路由
admin_router = DefaultRouter()
admin_router.register('feedbacks', AdminFeedbackViewSet, basename='admin-feedbacks')

admin_urlpatterns = [
    path('', include(admin_router.urls)),
]
