typespeed 2.3.5 → 2.3.6
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.
|
@@ -33,7 +33,6 @@ class ExpressServer extends server_factory_class_1.default {
|
|
|
33
33
|
this.middlewareList.push(middleware);
|
|
34
34
|
}
|
|
35
35
|
start(port, callback) {
|
|
36
|
-
this.app.use(this.authentication.afterCompletion);
|
|
37
36
|
this.middlewareList.forEach(middleware => {
|
|
38
37
|
this.app.use(middleware);
|
|
39
38
|
});
|
|
@@ -76,6 +75,7 @@ class ExpressServer extends server_factory_class_1.default {
|
|
|
76
75
|
this.app.use(express.static(staticPath));
|
|
77
76
|
}
|
|
78
77
|
(0, route_decorator_1.setRouter)(this.app);
|
|
78
|
+
this.app.use(this.authentication.afterCompletion);
|
|
79
79
|
const errorPageDir = __dirname + "/pages";
|
|
80
80
|
this.app.use((req, res) => {
|
|
81
81
|
(0, core_decorator_1.error)("404 not found, for page: " + req.url);
|
package/package.json
CHANGED
|
@@ -54,7 +54,6 @@ export default class ExpressServer extends ServerFactory {
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
public start(port: number, callback?: Function): any {
|
|
57
|
-
this.app.use(this.authentication.afterCompletion);
|
|
58
57
|
this.middlewareList.forEach(middleware => {
|
|
59
58
|
this.app.use(middleware);
|
|
60
59
|
});
|
|
@@ -107,7 +106,8 @@ export default class ExpressServer extends ServerFactory {
|
|
|
107
106
|
this.app.use(express.static(staticPath))
|
|
108
107
|
}
|
|
109
108
|
setRouter(this.app);
|
|
110
|
-
|
|
109
|
+
this.app.use(this.authentication.afterCompletion);
|
|
110
|
+
|
|
111
111
|
const errorPageDir = __dirname + "/pages";
|
|
112
112
|
this.app.use((req, res) => {
|
|
113
113
|
error("404 not found, for page: " + req.url);
|