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

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