Alpha Release 0.0.11 #87

Manually merged
niggl merged 57 commits from dev into main 2021-01-10 17:16:12 +00:00
2 changed files with 2 additions and 4 deletions
Showing only changes of commit e4fafd764c - Show all commits

View File

@ -1,6 +1,5 @@
import { MetadataArgsStorage } from 'routing-controllers';
import { routingControllersToSpec } from 'routing-controllers-openapi';
import { config } from './config';
/**
* This function generates a the openapi spec from route metadata and type schemas.
@ -44,7 +43,7 @@ export function generateSpec(storage: MetadataArgsStorage, schemas) {
info: {
description: "The the backend API for the LfK! runner system.",
title: "LfK! Backend API",
version: config.package_version,
version: process.env.npm_package_version
},
}
);

View File

@ -7,8 +7,7 @@ export const config = {
development: process.env.NODE_ENV === "production",
jwt_secret: process.env.JWT_SECRET || "secretjwtsecret",
phone_validation_countrycode: process.env.PHONE_COUNTRYCODE || "ZZ",
postalcode_validation_countrycode: getPostalCodeLocale(),
package_version: process.env.npm_package_version
postalcode_validation_countrycode: getPostalCodeLocale()
}
let errors = 0
if (typeof config.internal_port !== "number") {