mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
core: use disposable handler
This commit is contained in:
1 parent
fd7c9cbeb1
commit
3d4aa0ba21
18 files changed
+130
-168
No files matched your search
@@ -3,9 +3,7 @@ import crypto from 'crypto';
|
||||
import yaml from 'js-yaml';
|
||||
import * as bus from 'hydrooj/src/service/bus';
|
||||
import db from 'hydrooj/src/service/db';
|
||||
import {
|
||||
Handler, post, Route, Types,
|
||||
} from 'hydrooj/src/service/server';
|
||||
import { Handler, post, Types } from 'hydrooj/src/service/server';
|
||||
|
||||
function decrypt(encrypted: string) {
|
||||
if (!encrypted) throw new Error();
|
||||
|
||||
Reference in new issue
Block a user