mirror of
https://github.com/janishutz/libreevent.git
synced 2025-11-25 21:34:24 +00:00
progress on mysql db interface
This commit is contained in:
@@ -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( {
|
||||
|
||||
Reference in New Issue
Block a user