#5
from django.urls import path, include
from rest_framework import routers
#ビューインポート
from . import views

#ルーター設定
router = routers.DefaultRouter()
router.register('mainlist', views.MainListViewSet)
router.register('sublist', views.SubListViewSet)

app_name = 'api'
urlpatterns = [
    #ルーターを読み込み
    path('', include(router.urls)),
]
