MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / createProducerApp

Function createProducerApp

packages/producer/src/server.ts:707–719  ·  view source on GitHub ↗
(options: HandlerOptions = {})

Source from the content-addressed store, hash-verified

705 * Create a Hono app with clean public routes for OSS use.
706 */
707export 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

Callers 1

startServerFunction · 0.85

Calls 2

createRenderHandlersFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected