mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-03 21:03:08 +00:00
refactoring the api endpoints to be separate files to reduce context usage
This commit is contained in:
17
apps/server/src/routes/running-agents/index.ts
Normal file
17
apps/server/src/routes/running-agents/index.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* Running Agents routes - HTTP API for tracking active agent executions
|
||||
*/
|
||||
|
||||
import { Router } from "express";
|
||||
import type { AutoModeService } from "../../services/auto-mode-service.js";
|
||||
import { createIndexHandler } from "./routes/index.js";
|
||||
|
||||
export function createRunningAgentsRoutes(
|
||||
autoModeService: AutoModeService
|
||||
): Router {
|
||||
const router = Router();
|
||||
|
||||
router.get("/", createIndexHandler(autoModeService));
|
||||
|
||||
return router;
|
||||
}
|
||||
Reference in New Issue
Block a user