2017-05-30 06:06:14 +00:00
|
|
|
var express = require('express');
|
|
|
|
var router = new express.Router();
|
|
|
|
var settings = require('./settings.js');
|
|
|
|
|
|
|
|
// Página por defecto
|
|
|
|
router.get('/', function(request, response) {
|
2017-05-31 12:55:41 +00:00
|
|
|
response.send(settings.app().name + ' v' + settings.app().version);
|
2017-05-30 06:06:14 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
// Rutas de los escritos.
|
2017-05-31 16:19:55 +00:00
|
|
|
router.use('/manuscript', require('./Route/manuscript.js'));
|
2017-05-30 06:06:14 +00:00
|
|
|
|
|
|
|
// Rutas de las notificaciones.
|
2017-05-31 16:19:55 +00:00
|
|
|
router.use('/notification', require('./Route/notification.js'));
|
2017-05-30 06:06:14 +00:00
|
|
|
|
|
|
|
module.exports = router;
|