You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewError("This is an error to validate final 'ErrorResponseTransformer' error handling of library");
21
24
});
@@ -27,8 +30,8 @@ async function AppStartUp(rootRouter, DIContainer, application) {
27
30
.registerApplicationHandler(utilities.helmetMiddleware(),"*",1,ApplicationTypes.Both)//register helmet middleware for both application and health
28
31
.registerApplicationHandler(utilities.bodyParserURLEncodingMiddleware(),"*",2,ApplicationTypes.Main)//register body parser url middleware for application
29
32
.registerApplicationHandler(utilities.bodyParserJSONEncodingMiddleware({limit: '50M'}),"*",3,ApplicationTypes.Main)//register body parser json middleware for application
30
-
.registerApplicationHandler(apiDocs.router,apiDocs.hostingPath,3,ApplicationTypes.Main)//register api docs
31
-
.registerApplicationHandler(utilities.injectInRequestMiddleware("DIProp",DIContainer),"*",4,ApplicationTypes.Main)//register DI container middleware
33
+
.registerApplicationHandler(apiDocs.router,apiDocs.hostingPath,4,ApplicationTypes.Main)//register api docs
34
+
.registerApplicationHandler(utilities.injectInRequestMiddleware("DIProp",DIContainer),"*",5,ApplicationTypes.Main)//register DI container middleware
32
35
.overrideCatchAllErrorResponseTransformer((req,error)=>({//override the default catch all error response transformer
0 commit comments