You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CoreID/app/services/cobalt.service.js

17 lines
428 B

4 years ago
const { Service } = require('flitter-di')
class CobaltService extends Service {
static get services() {
return [...super.services, 'Vue']
}
listing(req, res, { title = '', columns, data }) {
return res.page('cobalt:listing', {
...this.Vue.data({ definition: { title, columns, data } }),
...this.Vue.session(req),
})
}
}
module.exports = exports = CobaltService