2018-02-27 13:16:17 +01:00
|
|
|
'use strict'
|
2018-12-17 17:34:32 +01:00
|
|
|
const { Action, api } = require('actionhero')
|
2018-02-27 13:16:17 +01:00
|
|
|
|
|
|
|
module.exports = class CreateChatRoom extends Action {
|
|
|
|
constructor () {
|
|
|
|
super()
|
|
|
|
this.name = 'render'
|
|
|
|
this.description = 'I render the next.js react website'
|
|
|
|
}
|
|
|
|
|
|
|
|
async run (data) {
|
|
|
|
data.toRender = false
|
|
|
|
return api.next.render(data.connection)
|
|
|
|
}
|
|
|
|
}
|