Disable server-side rendering of choo js

parent d0f3066f
......@@ -34,14 +34,7 @@ module.exports = class ServerRender {
}
render (route, done) {
var self = this
if (this.appType === 'choo') choo.render(this.app, route, send)
else done(null, Object.assign({ route: route }, this.DEFAULT_RESPONSE))
function send (err, res) {
if (err) return done(err)
done(null, Object.assign({ route: route }, self.DEFAULT_RESPONSE, res))
}
done(null, Object.assign({ route: route }, this.DEFAULT_RESPONSE))
}
close () {
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment