This commit is contained in:
@@ -4,6 +4,7 @@ from .views import (
|
||||
CompetitionViewSet, ProjectViewSet, ProjectFileViewSet,
|
||||
ScoreViewSet, CommentViewSet
|
||||
)
|
||||
from . import judge_views
|
||||
|
||||
router = DefaultRouter()
|
||||
router.register(r'competitions', CompetitionViewSet)
|
||||
@@ -13,5 +14,10 @@ router.register(r'scores', ScoreViewSet, basename='score')
|
||||
router.register(r'comments', CommentViewSet, basename='comment')
|
||||
|
||||
urlpatterns = [
|
||||
# Judge System Routes
|
||||
path('admin/', judge_views.admin_entry, name='judge_admin_entry'),
|
||||
path('judge/', include('competition.judge_urls')), # Sub-routes under /judge/
|
||||
|
||||
# Existing API Routes
|
||||
path('', include(router.urls)),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user