(options: HandlerOptions = {})
| 705 | * Create a Hono app with clean public routes for OSS use. |
| 706 | */ |
| 707 | export function createProducerApp(options: HandlerOptions = {}): Hono { |
| 708 | const app = new Hono(); |
| 709 | const handlers = createRenderHandlers(options); |
| 710 | |
| 711 | app.get("/health", handlers.health); |
| 712 | app.post("/render", handlers.render); |
| 713 | app.post("/render/stream", handlers.renderStream); |
| 714 | app.get("/render/queue", handlers.queue); |
| 715 | app.post("/lint", handlers.lint); |
| 716 | app.get("/outputs/:token", handlers.outputs); |
| 717 | |
| 718 | return app; |
| 719 | } |
| 720 | |
| 721 | // --------------------------------------------------------------------------- |
| 722 | // Standalone server |
no test coverage detected