12345678910111213 |
- from django.urls import include, path
- from games.api.views import GameViewSet
- from rest_framework import routers
- # importing views from views..py
- from .views import GameList, GameDetail
- app_name = "games"
- urlpatterns = [
- path("", GameList.as_view(), name="game_list"),
- path("<str:slug>/", GameDetail.as_view(), name="game_detail"),
- ]
|