salix/services/mailer/Application/router.js

17 lines
456 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.name + ' v' + settings.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;