backend/app/controllers/socket/Code.controller.js
garrettmills 0e4160a752
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
Start generic websocket framework for real-time editor
2021-04-22 10:48:11 -05:00

11 lines
283 B
JavaScript

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