from django.urls import path

from . import views

app_name = "products"
urlpatterns = [
    path(route="list/", view=views.ProductListView.as_view(), name="list"),
    path("all/", views.get_all_products),
    path("save/<int:id_origin>/<int:id_substitue>/", views.save_favorite, name="save"),
    path("", views.search_product, name="prod"),
    path(route="<int:pk>", view=views.ProductDetailView.as_view(), name="detail"),
]
