Skip to content

Commit 718a373

Browse files
committed
update swagger tooling
1 parent 3cd6278 commit 718a373

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ if ("RATE_MAX" in process.env) {
5252
// INITIALIZE SWAGGER
5353
fastify.register(require('@fastify/swagger'), {
5454
exposeRoute: true,
55-
routePrefix: '/',
5655
hideUntagged: true,
5756
swagger: {
5857
"basePath": process.env.BASE_PATH || "/",
@@ -78,6 +77,11 @@ fastify.register(require('@fastify/swagger'), {
7877
}
7978
})
8079

80+
// SWAGGER UI
81+
fastify.register(require("@fastify/swagger-ui"), {
82+
routePrefix: "/"
83+
})
84+
8185
// ADD ROUTES
8286
fastify.register(require('@fastify/autoload'), {
8387
dir: path.join(__dirname, 'routes')

0 commit comments

Comments
 (0)