Generic Commit; Most likely a fix or small feature
This commit is contained in:
@@ -31,7 +31,10 @@ await fastify.register(fastifySwagger, {
|
|||||||
description: "API Documentation",
|
description: "API Documentation",
|
||||||
version: "1.0.0",
|
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,
|
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(`Server listening at ${address}`);
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log(`API docs available at http://localhost:${port}/docs`);
|
|
||||||
|
|||||||
Reference in New Issue
Block a user