core: use disposable handler

This commit is contained in:
undefined committed 2022-09-20 22:47:14 +08:00
1 parent fd7c9cbeb1
commit 3d4aa0ba21
18 files changed
+130 -168

No files matched your search

+1 -3
View File
@@ -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();