mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
添加全局rate_limit,更换ui节点接口
This commit is contained in:
1 parent
02c1866963
commit
03dc8903e2
22 files changed
+231
-216
No files matched your search
@@ -10,6 +10,7 @@ import {
|
||||
Route, Handler, param, Types,
|
||||
} from 'hydrooj/dist/service/server';
|
||||
import { streamToBuffer } from 'hydrooj/dist/utils';
|
||||
import { ProblemAdd } from 'hydrooj/dist/lib/ui';
|
||||
import * as file from 'hydrooj/dist/model/file';
|
||||
import { PERM } from 'hydrooj/dist/model/builtin';
|
||||
|
||||
@@ -123,6 +124,7 @@ class FpsProblemImportHandler extends Handler {
|
||||
|
||||
export async function apply() {
|
||||
Route('problem_import_fps', '/problem/import/fps', FpsProblemImportHandler, PERM.PERM_CREATE_PROBLEM);
|
||||
ProblemAdd('problem_import_fps', {}, 'copy', 'From FPS File');
|
||||
}
|
||||
|
||||
global.Hydro.handler.fpsImport = apply;
|
||||
Reference in new issue
Block a user