*Add core.appServer.buildRoutes async event to allow plugins to register routes
This commit is contained in:
parent
38d6198628
commit
90e0f3f2c4
|
@ -18,6 +18,8 @@ export async function start() {
|
||||||
res.send(Buffer.from(keyPair.publicKey).toString("hex"));
|
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" });
|
await app.listen({ port: config.uint("core.appport"), host: "0.0.0.0" });
|
||||||
|
|
||||||
getPluginAPI().emit("core.appServer.started");
|
getPluginAPI().emit("core.appServer.started");
|
||||||
|
|
Loading…
Reference in New Issue