getApp

View as MarkdownOpen in Claude

Get the underlying Hono application instance for mounting into an existing application or for testing purposes.

Parameters

None.

Returns

Hono — The configured Hono application with CORS, security headers, basic auth (if configured), and SWML-serving routes.

Example

import { SWMLService } from '@signalwire/sdk';
const service = new SWMLService({ name: 'my-ivr' });
service.addVerb('answer', {});
service.addVerb('hangup', {});
const app = service.getApp();
// Mount into another Hono app, or use for testing