@athenna/http 1.1.2 → 1.1.3
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/package.json +1 -1
- package/src/Router/Route.js +2 -1
package/package.json
CHANGED
package/src/Router/Route.js
CHANGED
|
@@ -47,7 +47,8 @@ class Route {
|
|
|
47
47
|
};
|
|
48
48
|
const insertionType = prepend ? 'unshift' : 'push';
|
|
49
49
|
if (utils_1.Is.String(middleware)) {
|
|
50
|
-
const mid = ioc.
|
|
50
|
+
const mid = ioc.use(`App/Middlewares/Names/${middleware}`) ||
|
|
51
|
+
ioc.safeUse(`App/Middlewares/${middleware}`);
|
|
51
52
|
if (!mid) {
|
|
52
53
|
throw new MiddlewareNotFoundException_1.MiddlewareNotFoundException(middleware);
|
|
53
54
|
}
|