salix/services/mailer/Application/router.js

17 lines
468 B
JavaScript

var express = require('express');
var router = new express.Router();
var settings = require('./settings.js');
// Página por defecto
router.get('/', function(request, response) {
response.send(settings.app().name + ' v' + settings.app().version);
});
// Rutas de los escritos.
router.use('/manuscript', require('./Route/manuscript.js'));
// Rutas de las notificaciones.
router.use('/notification', require('./Route/notification.js'));
module.exports = router;