diff --git a/package.json b/package.json index 326226bd..23513ae9 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "@fastify/rate-limit": "^9.1.0", "@fastify/sensible": "^5.0.0", "@fastify/swagger": "^8.14.0", - "@fastify/swagger-ui": "^3.0.0", + "@fastify/swagger-ui": "^4.0.1", "@fastify/type-provider-typebox": "^4.0.0", "@fastify/under-pressure": "^8.3.0", "@sinclair/typebox": "^0.32.31", diff --git a/src/plugins/external/swagger.ts b/src/plugins/external/swagger.ts index ede64459..5b8ccfe6 100644 --- a/src/plugins/external/swagger.ts +++ b/src/plugins/external/swagger.ts @@ -25,6 +25,6 @@ export default fp(async function (fastify) { * @see {@link https://github.com/fastify/fastify-swagger-ui} */ await fastify.register(fastifySwaggerUi, { - // Set plugin options here + routePrefix: '/api/docs' }); }); diff --git a/src/routes/home.ts b/src/routes/home.ts index 9ab69595..eb2cfd7c 100644 --- a/src/routes/home.ts +++ b/src/routes/home.ts @@ -12,8 +12,7 @@ const plugin: FastifyPluginAsyncTypebox = async (fastify) => { 200: Type.Object({ message: Type.String() }) - }, - tags: ["Home"] + } } }, async function () {