fix(server): hardcode API-Version

This commit is contained in:
Simon Giesel 2020-09-21 14:53:11 +02:00
parent b54cf88ca1
commit 26573e5a2b

View file

@ -36,7 +36,7 @@ async function bootstrap(): Promise<void> {
.setTitle('Cliffbreak TeamSpeak API') .setTitle('Cliffbreak TeamSpeak API')
.setDescription('This is the official Cliffbreak TeamSpeak API!') .setDescription('This is the official Cliffbreak TeamSpeak API!')
.addBearerAuth() .addBearerAuth()
.setVersion(require('./../package.json').version) .setVersion('1.0.0')
.build(); .build();
const swaggerDocument = SwaggerModule.createDocument(app, swaggerOptions); const swaggerDocument = SwaggerModule.createDocument(app, swaggerOptions);
SwaggerModule.setup('/api-docs', app, swaggerDocument); SwaggerModule.setup('/api-docs', app, swaggerDocument);