add message at start of program
Version updated
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user