quantum_stack_interview/shop/urls.py

12 lines
443 B
Python

from __future__ import annotations
from django.urls import path
from shop.views import batch_order_view, create_product_view, product_search_view
urlpatterns = [
path("product/search/", product_search_view, name="product_search"), # 商品搜索接口
path("product/create/", create_product_view, name="create_product"), # 新增商品接口
path("order/batch/", batch_order_view, name="batch_order"), # 批量下单接口
]