mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-01-31 06:42:03 +00:00
19 lines
566 B
TypeScript
19 lines
566 B
TypeScript
/**
|
|
* GitHub routes - HTTP API for GitHub integration
|
|
*/
|
|
|
|
import { Router } from 'express';
|
|
import { createCheckGitHubRemoteHandler } from './routes/check-github-remote.js';
|
|
import { createListIssuesHandler } from './routes/list-issues.js';
|
|
import { createListPRsHandler } from './routes/list-prs.js';
|
|
|
|
export function createGitHubRoutes(): Router {
|
|
const router = Router();
|
|
|
|
router.post('/check-remote', createCheckGitHubRemoteHandler());
|
|
router.post('/issues', createListIssuesHandler());
|
|
router.post('/prs', createListPRsHandler());
|
|
|
|
return router;
|
|
}
|