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 1de5fd1 commit fb33821
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 @@ -53,13 +53,11 @@ const Fastify = require("fastify");
const disableCache = require("fastify-disablecache");

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

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 fb33821

Please sign in to comment.