2017-05-30 06:06:14 +00:00
|
|
|
var express = require('express');
|
|
|
|
var router = new express.Router();
|
|
|
|
var settings = require('./settings.js');
|
|
|
|
|
2017-06-07 13:28:42 +00:00
|
|
|
// Mailer default page
|
2017-05-30 06:06:14 +00:00
|
|
|
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
|
|
|
});
|
|
|
|
|
2017-06-07 13:28:42 +00:00
|
|
|
// Manuscripts
|
2017-06-01 06:51:29 +00:00
|
|
|
router.use('/manuscript', require('./route/manuscript.js'));
|
2017-05-30 06:06:14 +00:00
|
|
|
|
2017-06-07 13:28:42 +00:00
|
|
|
// Notifications
|
2017-06-01 06:51:29 +00:00
|
|
|
router.use('/notification', require('./route/notification.js'));
|
2017-05-30 06:06:14 +00:00
|
|
|
|
|
|
|
module.exports = router;
|