@webtypen/webframez-core 0.0.13 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/WebApplication.js +3 -1
- package/package.json +1 -1
- package/src/WebApplication.ts +3 -1
package/lib/WebApplication.js
CHANGED
|
@@ -11,7 +11,9 @@ class WebApplication {
|
|
|
11
11
|
* Init the routes and start the http-server
|
|
12
12
|
*/
|
|
13
13
|
boot(options) {
|
|
14
|
-
Router_1.Router.init(
|
|
14
|
+
Router_1.Router.init({
|
|
15
|
+
basename: options && options.basename ? options.basename : null,
|
|
16
|
+
});
|
|
15
17
|
const port = options && options.port ? options.port : 3000;
|
|
16
18
|
this.server = http_1.default
|
|
17
19
|
.createServer((req, res) => {
|
package/package.json
CHANGED
package/src/WebApplication.ts
CHANGED
|
@@ -8,7 +8,9 @@ export class WebApplication {
|
|
|
8
8
|
* Init the routes and start the http-server
|
|
9
9
|
*/
|
|
10
10
|
boot(options?: any) {
|
|
11
|
-
Router.init(
|
|
11
|
+
Router.init({
|
|
12
|
+
basename: options && options.basename ? options.basename : null,
|
|
13
|
+
});
|
|
12
14
|
|
|
13
15
|
const port = options && options.port ? options.port : 3000;
|
|
14
16
|
this.server = http
|