Add real-time collab controller for markdown
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing

This commit is contained in:
Garrett Mills 2021-04-24 11:40:42 -05:00
parent 83ac17cbac
commit 412c791b02
Signed by: garrettmills
GPG Key ID: D2BF5FBA8298F246
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,10 @@
const EditorController = require('./Editor.controller')
class MarkdownController extends EditorController {
async _get_resource(id) {
const Node = this.models.get('api:Node')
return Node.findOne({ UUID: id })
}
}
module.exports = exports = MarkdownController

View File

@ -16,5 +16,8 @@ module.exports = exports = {
'/code/.websocket': [
'controller::socket:Code',
],
'/markdown/.websocket': [
'controller::socket:Markdown',
],
}
}