Skip to content

Commit

Permalink
Merge pull request #23 from OlofFredriksson/readmeexpress
Browse files Browse the repository at this point in the history
docs: express getting started
  • Loading branch information
ext authored Oct 22, 2024
2 parents 8663c33 + 937ba8c commit e152d07
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ http.createServer(app).listen(3000);
### With Express

```js
const apimock = require("@forsakringskassan/apimock-express");
const express = require("express");

const app = express();
Expand All @@ -56,7 +57,7 @@ apimock.config([
]);

/* install middleware */
server.middlewares.use("/", apimockExpress.mockRequest);
app.use("/", apimock.mockRequest);

app.listen(3000);
```
Expand Down

0 comments on commit e152d07

Please sign in to comment.