salix/services/mailer/application/router.js

17 lines
442 B
JavaScript

var express = require('express');
var router = new express.Router();
var settings = require('./settings.js');
// Mailer default page
router.get('/', function(request, response) {
response.send(settings.app().name + ' v' + settings.app().version);
});
// Manuscripts
router.use('/manuscript', require('./route/manuscript.js'));
// Notifications
router.use('/notification', require('./route/notification.js'));
module.exports = router;