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;