|
|
|
from django.urls import path,include
|
|
|
|
from . import views
|
|
|
|
from rest_framework.routers import DefaultRouter
|
|
|
|
|
|
|
|
# router = DefaultRouter()
|
|
|
|
# router.register(r'students', views.StudentViewSet) # 注册 'students' 路由
|
|
|
|
|
|
|
|
urlpatterns = [
|
|
|
|
path('',views.toLogin_view),
|
|
|
|
path('index/',views.Login_view),
|
|
|
|
path('toregister/',views.toregister_view),
|
|
|
|
path('register/',views.register_view),
|
|
|
|
path('upload/', views.upload_students, name='upload_students'),
|
|
|
|
path('roll_call/', views.roll_call, name='roll_call'),
|
|
|
|
path('confirm_roll_call/', views.confirm_roll_call, name='confirm_roll_call'), # 确认点名
|
|
|
|
path('leaderboard/', views.leaderboard, name='leaderboard'),
|
|
|
|
# path('', include(router.urls)),
|
|
|
|
]
|