From da63a82a7e9600d55ce4802459a1b238c933b1ef Mon Sep 17 00:00:00 2001 From: SEREGA4332 <148464615+SEREGA4332@users.noreply.github.com> Date: Sun, 17 Mar 2024 11:43:07 +0300 Subject: [PATCH] Update urls.py --- .../api_with_restrictions/api_with_restrictions/urls.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)),