add message at start of program

Version updated
This commit is contained in:
2023-11-29 16:18:56 +00:00
parent c10001754f
commit 3fbe3fb025
3 changed files with 8 additions and 3 deletions
+5
View File
@@ -6,6 +6,9 @@ import cors from 'cors'
import i18next from 'i18next'
import i18nextMiddleware from 'i18next-http-middleware'
import Backend from 'i18next-node-fs-backend'
import {logit} from "./utilities/logit.js"
import pkg from './package.json' assert { type: "json" }
const app = express()
@@ -58,4 +61,6 @@ app.use(function(err, req, res, next) {
res.send(`ERROR: ${err.status}, ${err.stack}`)
})
logit(`Start of Program Version: ${pkg.version} vom ${pkg.date}`)
export default app