add electron forge + fixes

This commit is contained in:
2023-06-04 10:40:54 +02:00
parent e3d1ff1228
commit 41b8dd6d03
7 changed files with 7155 additions and 106 deletions

View File

@@ -42,11 +42,12 @@ app.get( '/api/getOutputFile', ( request, response ) => {
} );
app.post( '/api/startUpscaling', ( request, response ) => {
if ( upscalingHandler.verifyDataIntegrity( request.body ) ) {
response.send( { 'data': 'upscaling' } );
let checks = upscalingHandler.verifyDataIntegrity( request.body );
if ( checks[ 0 ] ) {
response.send( { 'data': checks[ 1 ] } );
upscalingHandler.upscale( request.body );
} else {
response.send( { 'data': 'dataIncorrect' } );
response.send( { 'data': checks[ 1 ] } );
}
} );