15 lines
380 B
Python
15 lines
380 B
Python
from django.urls import include, path
|
|
|
|
from rest_framework.routers import DefaultRouter
|
|
|
|
from .views import *
|
|
|
|
preorder_router = DefaultRouter(trailing_slash=True)
|
|
preorder_router.register(r"email", PreOrderedAPIViewSet, basename="preorder")
|
|
|
|
app_name = 'homes'
|
|
|
|
urlpatterns = [
|
|
path('search/', SearchAPIView.as_view()),
|
|
path("preorder/", include(preorder_router.urls)),
|
|
] |