mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-25 17:48:42 +00:00
20 lines
532 B
PHP
20 lines
532 B
PHP
<?php
|
|
|
|
call_user_func(function () { // to prevent variable scope leak
|
|
Route::group(
|
|
[
|
|
'domain' => UOJConfig::$data['web']['main']['host'],
|
|
],
|
|
function () {
|
|
// Remote Judge
|
|
Route::post("/api/remote_judge/custom_account_validator", '/subdomain/api/remote_judge/custom_account_validator.php');
|
|
|
|
// Submission
|
|
Route::any('/api/submission/submission_status_details', '/subdomain/api/submission/submission_status_details.php');
|
|
|
|
// Misc
|
|
Route::post('/api/markdown', '/subdomain/api/markdown.php');
|
|
}
|
|
);
|
|
});
|