feat: ajout endpoint racine avec documentation API
All checks were successful
build-and-push-ext / build_push (push) Successful in 16s

This commit is contained in:
dev4 2025-09-20 12:43:57 +00:00
parent 391116b1cc
commit 5d2a4b2ded

View File

@ -9,6 +9,24 @@ import { processRoutes } from './process.routes';
const router = Router();
// Root endpoint
router.get('/', (req, res) => {
res.json({
message: 'LeCoffre Backend API',
version: '1.0.0',
status: 'running',
endpoints: {
health: '/api/v1/health',
sms: '/api/sms',
idnot: '/api/v1/idnot',
process: '/api/v1/process',
email: '/api/email',
stripe: '/api/stripe',
subscription: '/api/subscription'
}
});
});
// Mount routes
router.use('/api/v1', healthRoutes);
router.use('/api', smsRoutes);