diff --git a/README.md b/README.md index 05e20fb..a846215 100644 --- a/README.md +++ b/README.md @@ -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