progress on mysql db interface

This commit is contained in:
2023-07-12 11:39:26 +02:00
parent fbedf9e95e
commit cdaa6d76e5
3 changed files with 38 additions and 3 deletions

View File

@@ -27,6 +27,10 @@ db.connect();
const settings = JSON.parse( fs.readFileSync( path.join( __dirname + '/config/settings.config.json' ) ) );
if ( !settings.init ) {
db.setupDB( 'janishut_libreeventTest' );
}
// initialise express with middlewares
// TODO: Generate random token
app.use( expressSession( {