创赢未来评分系统 - 初始化提交(移除大文件)
All checks were successful
Deploy to Server / deploy (push) Successful in 18s
All checks were successful
Deploy to Server / deploy (push) Successful in 18s
This commit is contained in:
21
backend/competition/judge_urls.py
Normal file
21
backend/competition/judge_urls.py
Normal file
@@ -0,0 +1,21 @@
|
||||
from django.urls import path
|
||||
from django.views.generic import RedirectView
|
||||
from . import judge_views
|
||||
|
||||
urlpatterns = [
|
||||
# 默认跳转到登录页
|
||||
path('', RedirectView.as_view(url='login/', permanent=False), name='judge_index'),
|
||||
path('login/', judge_views.login_view, name='judge_login'),
|
||||
path('logout/', judge_views.logout_view, name='judge_logout'),
|
||||
path('send_code/', judge_views.send_code, name='judge_send_code'),
|
||||
path('dashboard/', judge_views.dashboard, name='judge_dashboard'),
|
||||
path('upload/', judge_views.upload_audio, name='judge_upload'),
|
||||
path('ai/manage/', judge_views.ai_manage, name='judge_ai_manage'),
|
||||
|
||||
# API
|
||||
path('api/projects/<int:project_id>/', judge_views.project_detail_api, name='judge_project_detail_api'),
|
||||
path('api/score/submit/', judge_views.submit_score, name='judge_submit_score'),
|
||||
path('api/upload/', judge_views.upload_audio, name='judge_api_upload'),
|
||||
path('api/upload/url/', judge_views.upload_audio_url, name='judge_api_upload_url'),
|
||||
path('api/ai/<str:task_id>/delete/', judge_views.delete_ai_task, name='judge_delete_ai_task'),
|
||||
]
|
||||
Reference in New Issue
Block a user