import { createRouter } from '@@/create-router'; // Mounted at `/api/example` — the prefix comes from `mountPrefix()`, which reads the manifest's // `publisher`. Nothing here knows or cares whether this plugin is first-party. // // `createRouter()` rather than a bare `new Hono()`: it carries the platform's context types, so // `ctx.get('user')` is typed and the middleware above behaves the same as it does for core routes. export const router = createRouter(); router.get('/ping', (ctx) => ctx.json({ plugin: 'example', ok: true }));