1 | ;
|
2 | const Bun = require("./Core");
|
3 | module.exports = (params) => {
|
4 | try {
|
5 | global.bun = new Bun("bun", params);
|
6 | bun.setException();
|
7 | bun.setErrHandle();
|
8 | bun.setReqLog();
|
9 | bun.setServerStaic();
|
10 | bun.setBodyParser();
|
11 | bun.setViews();
|
12 | bun.setLib();
|
13 | bun.setGlobalModule();
|
14 | bun.initAllApps();
|
15 | bun.setRouter();
|
16 | bun.setPlugins();
|
17 | bun.run(params.port);
|
18 | }
|
19 | catch (e) {
|
20 | bun.Logger.bunerr(e);
|
21 | }
|
22 | };
|
23 | //# sourceMappingURL=Bootstrap.js.map |
\ | No newline at end of file |