Socialify

Folder ..

Viewing index.ts
18 lines (15 loc) • 403.0 B

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
import { Router, Request, Response } from 'express';
import healthRoutes from './healthRoutes';

const router = Router();

// API documentation route
router.get('/', (_req: Request, res: Response) => {
    res.json({
        message: 'MetaChan API v1',
        endpoints: {
            health: '/health'
        }
    });
});

// Mount routes
router.use('/health', healthRoutes);

export default router;