diff --git a/src/index.ts b/src/index.ts index f1165ca..d18bb3d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -31,7 +31,10 @@ await fastify.register(fastifySwagger, { description: "API Documentation", version: "1.0.0", }, - servers: [{ url: "http://localhost:8080", description: "Development" }], + servers: [ + { url: "http://localhost:8080/api", description: "dev" }, + { url: "https://dpu.dariusbag.dev/api", description: "prod" }, + ], }, transform: jsonSchemaTransform, }); @@ -107,5 +110,3 @@ fastify.listen({ port: port, host: "0.0.0.0" }, (err, address) => { } console.log(`Server listening at ${address}`); }); - -console.log(`API docs available at http://localhost:${port}/docs`);