add judge_server related api
This commit is contained in:
1 parent
294fd8b5b2
commit
f56d75cf91
9 files changed
+254
-11
No files matched your search
+2
-1
@@ -1,8 +1,9 @@
|
||||
from django.conf.urls import url
|
||||
|
||||
from ..views import WebsiteConfigAPI, SMTPAPI
|
||||
from ..views import WebsiteConfigAPI, SMTPAPI, JudgeServerAPI
|
||||
|
||||
urlpatterns = [
|
||||
url(r'^smtp$', SMTPAPI.as_view(), name="smtp_admin_api"),
|
||||
url(r'^website$', WebsiteConfigAPI.as_view(), name="website_config_api"),
|
||||
url(r'^judge_server', JudgeServerAPI.as_view(), name="judge_server_api")
|
||||
]
|
||||
+3
-1
@@ -1,7 +1,9 @@
|
||||
from django.conf.urls import url
|
||||
|
||||
from ..views import WebsiteConfigAPI
|
||||
from ..views import WebsiteConfigAPI, JudgeServerHeartbeatAPI
|
||||
|
||||
|
||||
urlpatterns = [
|
||||
url(r'^website$', WebsiteConfigAPI.as_view(), name="website_info_api"),
|
||||
url(r'^judge_server_heartbeat$', JudgeServerHeartbeatAPI.as_view(), name="judge_server_heartbeat_api")
|
||||
]
|
||||
Reference in new issue
Block a user