restructure and rethink setup

This commit is contained in:
2023-08-10 14:11:13 +02:00
parent 0735224dd1
commit 0a1dee882a
12 changed files with 26 additions and 165 deletions

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' );
}
} );
}