UNPKG

548 BJavaScriptView Raw
1/**
2 * controllers/index.js
3 * */
4
5"use strict";
6
7var controller = require('./controller.js')
8
9module.exports = class {
10
11 constructor(config, paths) {
12 this.config = config;
13 this.paths = paths;
14 this.controller = new controller(config, paths)
15 }
16
17 load() {
18 this.files = this.controller.load()
19 return this.files;
20 }
21
22 init(){
23 var control = new controller(this.config, this.paths)
24 if(this.files){
25 control.files = this.files;
26 }
27
28 return control;
29 }
30
31}