Skip to content

Commit 72824d1

Browse files
committed
docs: replace express mapping strategy by default mapping strategy
1 parent ec2b568 commit 72824d1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ Notice that the `HttpProblemResponse` must come last. A global error logger woul
6767
precede it and forward the error to the `next` function.
6868

6969
```js
70-
import { ExpressMappingStrategy, HttpProblemResponse } from 'express-http-problem-details'
71-
import { MapperRegistry } from 'http-problem-details-mapper'
70+
import { HttpProblemResponse } from 'express-http-problem-details'
71+
import { DefaultMappingStrategy, MapperRegistry } from 'http-problem-details-mapper'
7272

73-
const strategy = new ExpressMappingStrategy(
73+
const strategy = new DefaultMappingStrategy(
7474
new MapperRegistry()
7575
.registerMapper(new NotFoundErrorMapper()))
7676

0 commit comments

Comments
 (0)