OnlineJudge/problem/urls/admin.py

10 lines
382 B
Python
Raw Normal View History

2017-01-25 08:29:00 +00:00
from django.conf.urls import url
2017-04-18 17:37:10 +00:00
from ..views.admin import ContestProblemAPI, ProblemAPI, TestCaseUploadAPI
2017-01-25 08:29:00 +00:00
urlpatterns = [
url(r"^test_case/upload/?$", TestCaseUploadAPI.as_view(), name="test_case_upload_api"),
2017-05-01 05:20:26 +00:00
url(r"^problem/?$", ProblemAPI.as_view(), name="problem_admin_api"),
url(r"^contest/problem/?$", ContestProblemAPI.as_view(), name="contest_problem_api")
2017-01-25 08:29:00 +00:00
]