2017-01-25 08:29:00 +00:00
|
|
|
from django.conf.urls import url
|
|
|
|
|
2018-01-07 06:37:14 +00:00
|
|
|
from ..views.admin import (ContestProblemAPI, ProblemAPI, TestCaseAPI, MakeContestProblemPublicAPIView,
|
|
|
|
CompileSPJAPI, AddContestProblemAPI, ExportProblemAPI, ImportProblemAPI,
|
|
|
|
FPSProblemImport)
|
2017-01-25 08:29:00 +00:00
|
|
|
|
|
|
|
urlpatterns = [
|
2017-11-14 13:06:33 +00:00
|
|
|
url(r"^test_case/?$", TestCaseAPI.as_view(), name="test_case_api"),
|
2017-11-16 14:12:17 +00:00
|
|
|
url(r"^compile_spj/?$", CompileSPJAPI.as_view(), name="compile_spj"),
|
2017-05-01 05:20:26 +00:00
|
|
|
url(r"^problem/?$", ProblemAPI.as_view(), name="problem_admin_api"),
|
2017-07-18 03:18:18 +00:00
|
|
|
url(r"^contest/problem/?$", ContestProblemAPI.as_view(), name="contest_problem_admin_api"),
|
2017-11-02 13:37:47 +00:00
|
|
|
url(r"^contest_problem/make_public/?$", MakeContestProblemPublicAPIView.as_view(), name="make_public_api"),
|
2017-12-03 10:52:32 +00:00
|
|
|
url(r"^contest/add_problem_from_public/?$", AddContestProblemAPI.as_view(), name="add_contest_problem_from_public_api"),
|
2018-01-07 06:37:14 +00:00
|
|
|
url(r"^export_problem/?$", ExportProblemAPI.as_view(), name="export_problem_api"),
|
|
|
|
url(r"^import_problem/?$", ImportProblemAPI.as_view(), name="import_problem_api"),
|
|
|
|
url(r"^import_fps/?$", FPSProblemImport.as_view(), name="fps_problem_api"),
|
2017-01-25 08:29:00 +00:00
|
|
|
]
|