* load app data
()
| 39 | * load app data |
| 40 | */ |
| 41 | loadData() { |
| 42 | // add data to koa application |
| 43 | think.app.modules = think.loader.modules; |
| 44 | think.app.models = think.loader.loadModel(); |
| 45 | think.app.services = think.loader.loadService(); |
| 46 | think.app.logics = think.loader.loadLogic(); |
| 47 | think.app.controllers = think.loader.loadController(); |
| 48 | think.app.routers = think.loader.loadRouter(); |
| 49 | think.app.validators = think.loader.loadValidator(); |
| 50 | } |
| 51 | /** |
| 52 | * load middleware |
| 53 | */ |