Semaphore/lib/routes/playbook/playbooks.js
2014-08-24 22:00:05 +01:00

24 lines
375 B
JavaScript

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)
})
}