mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-02 08:33:36 +00:00
refactoring the api endpoints to be separate files to reduce context usage
This commit is contained in:
16
apps/server/src/routes/git/index.ts
Normal file
16
apps/server/src/routes/git/index.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* Git routes - HTTP API for git operations (non-worktree)
|
||||
*/
|
||||
|
||||
import { Router } from "express";
|
||||
import { createDiffsHandler } from "./routes/diffs.js";
|
||||
import { createFileDiffHandler } from "./routes/file-diff.js";
|
||||
|
||||
export function createGitRoutes(): Router {
|
||||
const router = Router();
|
||||
|
||||
router.post("/diffs", createDiffsHandler());
|
||||
router.post("/file-diff", createFileDiffHandler());
|
||||
|
||||
return router;
|
||||
}
|
||||
Reference in New Issue
Block a user