Skip to content

Commit

Permalink
docs(readme): update example for fastify v4
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Jul 25, 2022
1 parent a437977 commit 84161cf
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,11 @@ const Fastify = require("fastify");
const flocOff = require("fastify-floc-off");

const server = Fastify();
server.register(flocOff);
await server.register(flocOff);

server.get("/", (req, res) => {
res.send("ok");
});
server.get("/", () => "ok");

server.listen(3000);
await server.listen({ port: 3000 });
```

## Contributing
Expand Down

0 comments on commit 84161cf

Please sign in to comment.