feat: serve plugin http and websockets from one mount instead of ports

This commit is contained in:
LukeGus committed 2026-09-22 16:39:41 -05:00
1 parent c496a093ca
commit 8431570ff7
102 files changed
+2894 -2308

No files matched your search

+6 -2
View File
@@ -6,10 +6,14 @@ import {
} from "./scheduler.js";
export async function activate(ctx: PluginContext) {
startAutomationsService();
startAutomationsService(
// The webhook route authenticates on its own per-automation token rather
// than a session, which is the point of an inbound webhook.
ctx.http.router({ public: ["/webhook/:token"] }),
);
startAutomationScheduler();
ctx.log.info(
"Automations router registered at /automations; scheduler started",
"Automations routes mounted at /plugin-api/automations; scheduler started",
);
}