UNPKG

494 BJavaScriptView Raw
1/**
2 * controllers/index.js
3 * */
4
5"use strict";
6
7module.exports = (config, paths) => {
8 this.model = require('../models')(config, paths)
9
10 this.view = new(require('../views'))({
11 config,
12 paths
13 });
14
15 this.controller = new(require('../controllers'))(config, paths);
16 this.controller.view = this.view;
17 this.controller.model = this.model;
18 this.config = config;
19 this.paths = paths;
20 this.logger = require('../logs')(config, paths);
21
22 return this;
23}