backend/app/controllers/socket/Markdown.controller.js
garrettmills 412c791b02
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
Add real-time collab controller for markdown
2021-04-24 11:40:42 -05:00

11 lines
285 B
JavaScript

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