Product-Manager/z2/product-manager-backend/products/urls.py

21 lines
430 B
Python
Raw Normal View History

2022-04-25 12:07:08 +00:00
from typing import List
from django.urls import path
from products.views import ProductByIDAPIView, ProductListCreateAPIView
app_name = 'products'
urlpatterns: List[str] = [
path(
'products/',
ProductListCreateAPIView.as_view(),
name='product_list_create_api_view',
),
path(
'products/<int:id>',
ProductByIDAPIView.as_view(),
name='product_api_view_by_id',
),
]