11 lines
285 B
JavaScript
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
|