refactor: move submission_status_detail.php into api folder

This commit is contained in:
Baoshuo Ren 2023-03-14 11:03:37 +08:00
parent ae1d798795
commit 52ad8256d2
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A
4 changed files with 4 additions and 3 deletions

View File

@ -7,6 +7,8 @@ call_user_func(function () { // to prevent variable scope leak
],
function () {
Route::post("/api/remote_judge/custom_account_validator", '/subdomain/api/remote_judge/custom_account_validator.php');
Route::any('/api/submission/submission_status_details', '/subdomain/api/submission/submission_status_details.php');
}
);
});

View File

@ -54,7 +54,6 @@ Route::group(
Route::any('/submissions', '/submissions_list.php');
Route::any('/submission/{id}', '/submission.php');
Route::any('/submission-status-details', '/submission_status_details.php');
Route::any('/hacks', '/hack_list.php');
Route::any('/hack/{id}', '/hack.php');

View File

@ -403,8 +403,8 @@ function update_judgement_status_details(id) {
$(document).ready(function() {
function update() {
$.get("/submission-status-details", {
get: update_judgement_status_list
$.get("/api/submission/submission_status_details", {
get: update_judgement_status_list,
},
function(data) {
for (var i = 0; i < update_judgement_status_list.length; i++) {