mirror of
https://github.com/janishutz/libreevent.git
synced 2026-09-22 13:15:25 +02:00
progress on mysql db interface
This commit is contained in:
1 parent
fbedf9e95e
commit
cdaa6d76e5
3 files changed
+38
-3
No files matched your search
@@ -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