MCPcopy
hub / github.com/thinkjs/thinkjs / loadData

Method loadData

lib/loader.js:41–50  ·  view source on GitHub ↗

* load app data

()

Source from the content-addressed store, hash-verified

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 */

Callers 1

loadAllMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected