src/polymorphic/tests/examples/integrations/drf/urls.py
raw| 1 | from rest_framework.routers import DefaultRouter |
| 2 | |
| 3 | from .views import ProjectViewSet |
| 4 | from .filter_views import AnnotationTrainingViewSet |
| 5 | |
| 6 | app_name = "drf" |
| 7 | |
| 8 | router = DefaultRouter() |
| 9 | router.register(r"projects", ProjectViewSet) |
| 10 | router.register(r"annotations", AnnotationTrainingViewSet) |
| 11 | |
| 12 | urlpatterns = router.urls |