We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec2b568 commit 72824d1Copy full SHA for 72824d1
README.md
@@ -67,10 +67,10 @@ Notice that the `HttpProblemResponse` must come last. A global error logger woul
67
precede it and forward the error to the `next` function.
68
69
```js
70
-import { ExpressMappingStrategy, HttpProblemResponse } from 'express-http-problem-details'
71
-import { MapperRegistry } from 'http-problem-details-mapper'
+import { HttpProblemResponse } from 'express-http-problem-details'
+import { DefaultMappingStrategy, MapperRegistry } from 'http-problem-details-mapper'
72
73
-const strategy = new ExpressMappingStrategy(
+const strategy = new DefaultMappingStrategy(
74
new MapperRegistry()
75
.registerMapper(new NotFoundErrorMapper()))
76
0 commit comments