diff --git a/3.3-permissions/api_with_restrictions/api_with_restrictions/urls.py b/3.3-permissions/api_with_restrictions/api_with_restrictions/urls.py index b13dcf24b..64701f104 100644 --- a/3.3-permissions/api_with_restrictions/api_with_restrictions/urls.py +++ b/3.3-permissions/api_with_restrictions/api_with_restrictions/urls.py @@ -18,9 +18,11 @@ from rest_framework.routers import DefaultRouter +from advertisements.views import AdvertisementViewSet + router = DefaultRouter() # TODO: подключите `AdvertisementViewSet` - +router.register('advertisements', AdvertisementViewSet) urlpatterns = [ path('api/', include(router.urls)),