-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprojectService.js
More file actions
30 lines (24 loc) · 857 Bytes
/
Copy pathprojectService.js
File metadata and controls
30 lines (24 loc) · 857 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import { Router } from 'express';
import config from '../config.js';
import aiService, { availableProviders } from '../services/ai/index.js';
import githubRouter from './github.js';
import projectRouter from './project.js';
import aiRouter from './ai.js';
import deployRouter from './deploy.js';
const router = Router();
router.use('/github', githubRouter);
router.use('/project', projectRouter);
router.use('/ai', aiRouter);
router.use('/deploy', deployRouter);
// App metadata + provider settings
router.get('/info', (req, res) => {
res.json({
app: 'VibeDev',
version: '1.0.0',
providers: availableProviders(),
activeProvider: aiService.defaultName,
githubOAuthConfigured: Boolean(config.githubClientId && config.githubClientSecret)
});
});
router.get('/health', (req, res) => res.json({ ok: true }));
export default router;