restructure and rethink setup

This commit is contained in:
janishutz committed 2023-08-10 14:11:13 +02:00
1 parent 0735224dd1
commit 0a1dee882a
12 files changed
+26 -165

No files matched your search

+9 -1
View File
@@ -7,11 +7,19 @@
*
*/
const db = require( '../backend/db/db.js' );
module.exports = ( app, settings ) => {
/*
Admin login route that checks the password
*/
app.get( '/setup/start', ( request, response ) => {} );
app.get( '/setup/start', ( request, response ) => {
if ( request.query.token === settings.setupToken ) {
response.send( 'ok' );
} else {
response.send( 'incorrect' );
}
} );
}