Skip to content

Commit

Permalink
feat(apis_core): use CustomDefaultRouter instead of DRF DefaultRouter
Browse files Browse the repository at this point in the history
  • Loading branch information
b1rger committed Jun 18, 2024
1 parent d0428f0 commit 9ced7a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apis_core/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
from django.urls import path
from django.views.static import serve
from django.views.generic import TemplateView
from rest_framework import routers
from django.conf import settings


from apis_core.apis_metainfo.viewsets import UriToObjectViewSet
from apis_core.core.views import Dumpdata
from apis_core.apis_entities.api_views import GetEntityGeneric, ListEntityGeneric
from apis_core.generic.routers import CustomDefaultRouter

from drf_spectacular.views import (
SpectacularAPIView,
Expand All @@ -20,7 +20,7 @@

app_name = "apis_core"

router = routers.DefaultRouter()
router = CustomDefaultRouter()
# inject the manually created UriToObjectViewSet into the api router
router.register(r"metainfo/uritoobject", UriToObjectViewSet, basename="uritoobject")

Expand Down

0 comments on commit 9ced7a7

Please sign in to comment.