mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-01-31 20:03:37 +00:00
- Delete the 2705-line auto-mode-service.ts monolith - Create AutoModeServiceCompat as compatibility layer for routes - Create GlobalAutoModeService for cross-project operations - Update all routes to use AutoModeServiceCompat type - Add SharedServices interface for state sharing across facades - Add getActiveProjects/getActiveWorktrees to AutoLoopCoordinator - Delete obsolete monolith test files Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
28 lines
929 B
TypeScript
28 lines
929 B
TypeScript
/**
|
|
* Projects routes - HTTP API for multi-project overview and management
|
|
*/
|
|
|
|
import { Router } from 'express';
|
|
import type { FeatureLoader } from '../../services/feature-loader.js';
|
|
import type { AutoModeServiceCompat } from '../../services/auto-mode/index.js';
|
|
import type { SettingsService } from '../../services/settings-service.js';
|
|
import type { NotificationService } from '../../services/notification-service.js';
|
|
import { createOverviewHandler } from './routes/overview.js';
|
|
|
|
export function createProjectsRoutes(
|
|
featureLoader: FeatureLoader,
|
|
autoModeService: AutoModeServiceCompat,
|
|
settingsService: SettingsService,
|
|
notificationService: NotificationService
|
|
): Router {
|
|
const router = Router();
|
|
|
|
// GET /overview - Get aggregate status for all projects
|
|
router.get(
|
|
'/overview',
|
|
createOverviewHandler(featureLoader, autoModeService, settingsService, notificationService)
|
|
);
|
|
|
|
return router;
|
|
}
|