backend/app/controllers/socket/Code.controller.js

11 lines
283 B
JavaScript
Raw Normal View History

const EditorController = require('./Editor.controller')
class CodeController extends EditorController {
async _get_resource(id) {
const Codium = this.models.get('api:Codium')
return Codium.findOne({ UUID: id })
}
}
module.exports = exports = CodeController