mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-04 21:23:07 +00:00
refactoring the api endpoints to be separate files to reduce context usage
This commit is contained in:
17
apps/server/src/routes/workspace/index.ts
Normal file
17
apps/server/src/routes/workspace/index.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* Workspace routes
|
||||
* Provides API endpoints for workspace directory management
|
||||
*/
|
||||
|
||||
import { Router } from "express";
|
||||
import { createConfigHandler } from "./routes/config.js";
|
||||
import { createDirectoriesHandler } from "./routes/directories.js";
|
||||
|
||||
export function createWorkspaceRoutes(): Router {
|
||||
const router = Router();
|
||||
|
||||
router.get("/config", createConfigHandler());
|
||||
router.get("/directories", createDirectoriesHandler());
|
||||
|
||||
return router;
|
||||
}
|
||||
Reference in New Issue
Block a user