core: fix handler export

This commit is contained in:
undefined committed 2022-03-11 14:30:01 +08:00
1 parent 7255697797
commit cdda15f016
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "hydrooj",
"version": "3.8.4",
"version": "3.8.5",
"bin": "bin/hydrooj.js",
"main": "src/loader",
"module": "src/loader",
+2 -2
View File
@@ -432,7 +432,7 @@ class HomeMessagesConnectionHandler extends ConnectionHandler {
}
}
async function apply() {
export async function apply() {
Route('homepage', '/', HomeHandler);
Route('home_security', '/home/security', HomeSecurityHandler, PRIV.PRIV_USER_PROFILE);
Route('user_changemail_with_code', '/home/changeMail/:code', UserChangemailWithCodeHandler, PRIV.PRIV_USER_PROFILE);
@@ -443,4 +443,4 @@ async function apply() {
Connection('home_messages_conn', '/home/messages-conn', HomeMessagesConnectionHandler, PRIV.PRIV_USER_PROFILE);
}
global.Hydro.handler.home = module.exports = apply;
global.Hydro.handler.home = apply;