MCPcopy
hub / github.com/AutoMaker-Org/automaker / createGitHubRoutes

Function createGitHubRoutes

apps/server/src/routes/github/index.ts:24–70  ·  view source on GitHub ↗
(
  events: EventEmitter,
  settingsService?: SettingsService
)

Source from the content-addressed store, hash-verified

22import type { SettingsService } from '../../services/settings-service.js';
23
24export function createGitHubRoutes(
25 events: EventEmitter,
26 settingsService?: SettingsService
27): Router {
28 const router = Router();
29
30 router.post('/check-remote', validatePathParams('projectPath'), createCheckGitHubRemoteHandler());
31 router.post('/issues', validatePathParams('projectPath'), createListIssuesHandler());
32 router.post('/prs', validatePathParams('projectPath'), createListPRsHandler());
33 router.post('/issue-comments', validatePathParams('projectPath'), createListCommentsHandler());
34 router.post(
35 '/pr-review-comments',
36 validatePathParams('projectPath'),
37 createListPRReviewCommentsHandler()
38 );
39 router.post(
40 '/resolve-pr-comment',
41 validatePathParams('projectPath'),
42 createResolvePRCommentHandler()
43 );
44 router.post(
45 '/validate-issue',
46 validatePathParams('projectPath'),
47 createValidateIssueHandler(events, settingsService)
48 );
49
50 // Validation management endpoints
51 router.post(
52 '/validation-status',
53 validatePathParams('projectPath'),
54 createValidationStatusHandler()
55 );
56 router.post('/validation-stop', validatePathParams('projectPath'), createValidationStopHandler());
57 router.post('/validations', validatePathParams('projectPath'), createGetValidationsHandler());
58 router.post(
59 '/validation-delete',
60 validatePathParams('projectPath'),
61 createDeleteValidationHandler()
62 );
63 router.post(
64 '/validation-mark-viewed',
65 validatePathParams('projectPath'),
66 createMarkViewedHandler(events)
67 );
68
69 return router;
70}

Callers 1

index.tsFile · 0.85

Tested by

no test coverage detected