INNER CODE UNIT · TypeScript

createApiApp

germondai/trawl · apps/api/src/app.ts:11

export function createApiApp({ mcpEnabled = MCP_ENABLED }: { mcpEnabled?: boolean } = {}) {
  const app = new Elysia()
    .use(indexRoute())
    .use(healthRoute())
    .use(statsRoute())
    .use(v1Route())
    .use(scrapeRoute())
    .use(proxyCaRoute())

  if (mcpEnabled) app.use(mcpRoute())
  return app
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…