CoreID/app/controllers/dash/Profile.controller.js

17 lines
386 B
JavaScript
Raw Permalink Normal View History

2020-05-04 01:16:54 +00:00
const { Controller } = require('libflitter')
class ProfileController extends Controller {
static get services() {
return [...super.services, 'Vue']
}
async get_page(req, res, next) {
return res.page('dash:profile:main', {
...this.Vue.data(),
...this.Vue.session(req)
})
}
}
module.exports = exports = ProfileController