mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-29 06:35:24 +00:00
13 lines
449 B
TypeScript
13 lines
449 B
TypeScript
import type { PluginContext } from "@termix/plugin-sdk/backend";
|
|
import { startWebEndpointService, stopWebEndpointService } from "./routes.js";
|
|
|
|
export async function activate(ctx: PluginContext) {
|
|
startWebEndpointService(ctx.http.router(), ctx);
|
|
ctx.disposables.add(() => stopWebEndpointService());
|
|
ctx.log.info("Web Endpoint routes mounted at /plugin-api/web-endpoint");
|
|
}
|
|
|
|
export async function deactivate() {
|
|
stopWebEndpointService();
|
|
}
|