We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cd6278 commit 718a373Copy full SHA for 718a373
index.js
@@ -52,7 +52,6 @@ if ("RATE_MAX" in process.env) {
52
// INITIALIZE SWAGGER
53
fastify.register(require('@fastify/swagger'), {
54
exposeRoute: true,
55
- routePrefix: '/',
56
hideUntagged: true,
57
swagger: {
58
"basePath": process.env.BASE_PATH || "/",
@@ -78,6 +77,11 @@ fastify.register(require('@fastify/swagger'), {
78
77
}
79
})
80
+// SWAGGER UI
81
+fastify.register(require("@fastify/swagger-ui"), {
82
+ routePrefix: "/"
83
+})
84
+
85
// ADD ROUTES
86
fastify.register(require('@fastify/autoload'), {
87
dir: path.join(__dirname, 'routes')
0 commit comments