Semaphore/lib/routes/playbook/playbooks.js

24 lines
375 B
JavaScript
Raw Normal View History

2014-08-24 23:00:05 +02:00
var models = require('../../models')
exports.unauthorized = function (app, template) {
template([
'add'
], {
prefix: 'playbook'
});
}
exports.httpRouter = function () {
}
exports.router = function (app) {
app.get('/playbooks', getPlaybooks)
}
function getPlaybooks (req, res) {
models.Playbook.find({
}, function (err, playbooks) {
res.send(playbooks)
})
}