App now automagicly displays the current package version as the openapi version

ref #76
This commit is contained in:
2021-01-10 16:59:39 +01:00
parent 343cd8b772
commit 9355138a8c
2 changed files with 4 additions and 2 deletions

View File

@@ -3,6 +3,7 @@ import express, { Application } from "express";
import path from 'path';
import { getMetadataArgsStorage } from "routing-controllers";
import { routingControllersToSpec } from "routing-controllers-openapi";
import { config } from '../config';
/**
* Loader for everything openapi related - from creating the schema to serving it via a static route and swaggerUiExpress.
@@ -51,7 +52,7 @@ export default async (app: Application) => {
info: {
description: "The the backend API for the LfK! runner system.",
title: "LfK! Backend API",
version: "0.0.8",
version: config.package_version,
},
}
);