Commit 957be177 authored by FORESTIER Fabien's avatar FORESTIER Fabien
Browse files

Use package.json version as version for the swagger

parent 19e55042
Pipeline #2437 passed with stages
in 1 minute and 39 seconds
......@@ -20,7 +20,7 @@ async function bootstrap() {
.setBasePath('')
.setTitle('Email service API')
.setDescription('Service providing the method to send emails.')
.setVersion('0.1')
.setVersion(process.env.npm_package_version)
.addTag('email')
.build();
const document = SwaggerModule.createDocument(app, options);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment