( crons: ServiceCronEntry[] )
| 39 | * Build a JSON route table mapping cron paths to handler specifiers. |
| 40 | */ |
| 41 | export function buildCronRouteTable( |
| 42 | crons: ServiceCronEntry[] |
| 43 | ): Record<string, string> { |
| 44 | const table: Record<string, string> = {}; |
| 45 | for (const cron of crons) { |
| 46 | table[cron.path] = cron.resolvedHandler; |
| 47 | } |
| 48 | return table; |
| 49 | } |
| 50 | |
| 51 | /** |
| 52 | * Compute cron entries for a cron service build. Shared between build() |
no outgoing calls
no test coverage detected