Skip to content

Commit 9057549

Browse files
more readme changes
1 parent 03c4037 commit 9057549

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,14 @@ import Fastify from 'fastify'
3838
import enforceSchema from 'fastify-enforce-schema'
3939

4040
const fastify = Fastify()
41+
42+
// Register the plugin
4143
await fastify.register(enforceSchema, {
42-
// options
44+
// options (described below)
4345
})
46+
47+
// Register your routes
48+
// your route definitions here...
4449
```
4550
> _Note_: top-level await requires Node.js 14.8.0 or later
4651
@@ -49,9 +54,12 @@ await fastify.register(enforceSchema, {
4954
const fastify = require('fastify')()
5055
const enforceSchema = require('fastify-enforce-schema')
5156

57+
// Register the plugin
5258
fastify.register(enforceSchema, {
5359
// options (described below)
5460
})
61+
62+
// Register your routes
5563
fastify.register((fastify, options, done) => {
5664
// your route definitions here...
5765

0 commit comments

Comments
 (0)