freebie/api/urls.py

8 lines
No EOL
167 B
Python

from django.urls import path
from .views import hello, ProductListView
urlpatterns = [
path("hello/", hello),
path("products/", ProductListView.as_view()),
]