Files
Termix/plugins/web-endpoint/src/backend/index.ts
T

12 lines
375 B
TypeScript

import type { PluginContext } from "@termix/plugin-sdk/backend";
import { startWebEndpointService, stopWebEndpointService } from "./routes.js";
export async function activate(ctx: PluginContext) {
startWebEndpointService();
ctx.log.info("Web Endpoint router registered at /ssh/tunnel/web-endpoint");
}
export async function deactivate() {
stopWebEndpointService();
}