diff --git a/src/modules/app.ts b/src/modules/app.ts index 5b55c8d..8abdd0a 100644 --- a/src/modules/app.ts +++ b/src/modules/app.ts @@ -18,6 +18,8 @@ export async function start() { res.send(Buffer.from(keyPair.publicKey).toString("hex")); }); + await getPluginAPI().emitAsync("core.appServer.buildRoutes"); + await app.listen({ port: config.uint("core.appport"), host: "0.0.0.0" }); getPluginAPI().emit("core.appServer.started");