You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
724 B

2 months ago
from django.urls import path,include
2 months ago
from . import views
2 months ago
from rest_framework.routers import DefaultRouter
# router = DefaultRouter()
# router.register(r'students', views.StudentViewSet) # 注册 'students' 路由
2 months ago
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'), # 确认点名
2 months ago
path('leaderboard/', views.leaderboard, name='leaderboard'),
2 months ago
# path('', include(router.urls)),
2 months ago
]