<reponame>michaelchen-lab/LMS_Backend
from django.urls import path, include
from rest_framework.routers import DefaultRouter
from student_core.views import *

# Create a router and register our viewsets with it.
router = DefaultRouter()
router.register(r'initial', StudentInitialViewSet, basename="student_initial")
router.register(r'submission', StudentSubmissionViewSet, basename="student_submission")
router.register(r'submission_status', StudentSubmissionStatusViewSet, basename="student_submission_status")

# The API URLs are now determined automatically by the router.
urlpatterns = [
    path('leaderboard', Leaderboard, name="leaderboard"),
    path('', include(router.urls))
]

from django.urls import path, include
from rest_framework.routers import DefaultRouter
from student_core.views import *

# Create a router and register our viewsets with it.
router = DefaultRouter()
router.register(r'initial', StudentInitialViewSet, basename="student_initial")
router.register(r'submission', StudentSubmissionViewSet, basename="student_submission")
router.register(r'submission_status', StudentSubmissionStatusViewSet, basename="student_submission_status")

# The API URLs are now determined automatically by the router.
urlpatterns = [
    path('leaderboard', Leaderboard, name="leaderboard"),
    path('', include(router.urls))
]
# Create a router and register our viewsets with it. # The API URLs are now determined automatically by the router.