feat: ajout endpoint racine avec documentation API
All checks were successful
build-and-push-ext / build_push (push) Successful in 16s
All checks were successful
build-and-push-ext / build_push (push) Successful in 16s
This commit is contained in:
parent
391116b1cc
commit
5d2a4b2ded
@ -9,6 +9,24 @@ import { processRoutes } from './process.routes';
|
|||||||
|
|
||||||
const router = Router();
|
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
|
// Mount routes
|
||||||
router.use('/api/v1', healthRoutes);
|
router.use('/api/v1', healthRoutes);
|
||||||
router.use('/api', smsRoutes);
|
router.use('/api', smsRoutes);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user