This repository has been archived on 2018-10-12. You can view files and clone it, but cannot push or open issues or pull requests.
ProgBlog/app/base/DBModel.js

15 lines
271 B
JavaScript

'use strict';
const container = require('../Container');
const Model = container.getBase('Model');
const Config = container.getBase('Config');
class DBModel extends Model {
constructor() {
super();
this.db = Config.get('database');
}
}
module.exports = DBModel;