refactor
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
from django.urls import re_path as url
|
||||
from django.urls import path
|
||||
|
||||
from ..views import SMTPAPI, JudgeServerAPI, WebsiteConfigAPI, TestCasePruneAPI, SMTPTestAPI
|
||||
from ..views import ReleaseNotesAPI, DashboardInfoAPI
|
||||
|
||||
urlpatterns = [
|
||||
url(r"^smtp/?$", SMTPAPI.as_view(), name="smtp_admin_api"),
|
||||
url(r"^smtp_test/?$", SMTPTestAPI.as_view(), name="smtp_test_api"),
|
||||
url(r"^website/?$", WebsiteConfigAPI.as_view(), name="website_config_api"),
|
||||
url(r"^judge_server/?$", JudgeServerAPI.as_view(), name="judge_server_api"),
|
||||
url(r"^prune_test_case/?$", TestCasePruneAPI.as_view(), name="prune_test_case_api"),
|
||||
url(r"^versions/?$", ReleaseNotesAPI.as_view(), name="get_release_notes_api"),
|
||||
url(r"^dashboard_info", DashboardInfoAPI.as_view(), name="dashboard_info_api"),
|
||||
path("smtp", SMTPAPI.as_view()),
|
||||
path("smtp_test", SMTPTestAPI.as_view()),
|
||||
path("website", WebsiteConfigAPI.as_view()),
|
||||
path("judge_server", JudgeServerAPI.as_view()),
|
||||
path("prune_test_case", TestCasePruneAPI.as_view()),
|
||||
path("versions", ReleaseNotesAPI.as_view()),
|
||||
path("dashboard_info", DashboardInfoAPI.as_view()),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user