S2OJ/web/app/controllers/subdomain/api/route.php

20 lines
532 B
PHP
Raw Normal View History

<?php
call_user_func(function () { // to prevent variable scope leak
Route::group(
[
'domain' => UOJConfig::$data['web']['main']['host'],
],
function () {
2023-03-14 08:55:11 +00:00
// Remote Judge
Route::post("/api/remote_judge/custom_account_validator", '/subdomain/api/remote_judge/custom_account_validator.php');
2023-03-14 08:55:11 +00:00
// Submission
Route::any('/api/submission/submission_status_details', '/subdomain/api/submission/submission_status_details.php');
2023-03-14 08:55:11 +00:00
// Misc
Route::post('/api/markdown', '/subdomain/api/markdown.php');
}
);
});