Skip to content

Commit

Permalink
chore: update example
Browse files Browse the repository at this point in the history
  • Loading branch information
inyourtime committed Dec 11, 2024
1 parent 6beeb79 commit 5f1c3a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions example/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ fastify.register(fastifyOpenapiServe, {
})

fastify.register(fastifyApiReference, {
routePrefix: '/docs',
routePrefix: '/',
configuration: {
spec: {
url: '/openapi/json'
url: '/docs/openapi.json'
}
}
})

fastify.listen({ port: 3000 }, (err) => {
if (err) throw err
console.log('Documentation available on http://localhost:3000/docs')
console.log('Documentation available on http://localhost:3000/')
})

0 comments on commit 5f1c3a6

Please sign in to comment.