Skip to content

Commit b5da4c8

Browse files
chore bump swagger and add prefix doc (#14)
1 parent 66c2aa5 commit b5da4c8

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"@fastify/rate-limit": "^9.1.0",
3333
"@fastify/sensible": "^5.0.0",
3434
"@fastify/swagger": "^8.14.0",
35-
"@fastify/swagger-ui": "^3.0.0",
35+
"@fastify/swagger-ui": "^4.0.1",
3636
"@fastify/type-provider-typebox": "^4.0.0",
3737
"@fastify/under-pressure": "^8.3.0",
3838
"@sinclair/typebox": "^0.32.31",

src/plugins/external/swagger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ export default fp(async function (fastify) {
2525
* @see {@link https://github.com/fastify/fastify-swagger-ui}
2626
*/
2727
await fastify.register(fastifySwaggerUi, {
28-
// Set plugin options here
28+
routePrefix: '/api/docs'
2929
});
3030
});

src/routes/home.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ const plugin: FastifyPluginAsyncTypebox = async (fastify) => {
1212
200: Type.Object({
1313
message: Type.String()
1414
})
15-
},
16-
tags: ["Home"]
15+
}
1716
}
1817
},
1918
async function () {

0 commit comments

Comments
 (0)