/**
 * Core Route Index
 *
 * Contains only routes that are part of the core API infrastructure itself:
 * the health check and the storage file-serving endpoint. Both live under
 * src/core/ and have no feature-level dependencies.
 *
 * Feature routes (e.g. /users/*) are registered separately by each feature
 * during initializeZen() via registerFeatureRoutes().
 *
 * To add a new core infrastructure handler:
 *   1. Create the handler in its natural location under src/core/
 *   2. Export `routes` from it using defineApiRoutes()
 *   3. Add one line here: import + spread
 *   4. Done — never touch router.js
 */

import { routes as healthRoutes }  from './health.js';
import { routes as storageRoutes } from '../storage/api.js';

/**
 * Return all registered core infrastructure API routes.
 * @returns {ReadonlyArray}
 */
export function getCoreRoutes() {
  return [
    ...healthRoutes,
    ...storageRoutes,
  ];
}
