prepare payment gateway settings

This commit is contained in:
2023-08-29 17:27:45 +02:00
parent 6ac4fd9cda
commit 6a3127a35a
10 changed files with 57 additions and 21 deletions

View File

@@ -11,7 +11,6 @@ const posth = require( './api/postHandler.js' );
const geth = require( './api/getHandler.js' );
const postHandler = new posth();
const getHandler = new geth();
const path = require( 'path' );
const bodyParser = require( 'body-parser' );
module.exports = ( app, settings ) => {
@@ -39,12 +38,4 @@ module.exports = ( app, settings ) => {
res.status( error.code ).send( error.message );
} );
} );
app.get( '/eventAssets/:image', ( req, res ) => {
res.sendFile( path.join( __dirname + '/../assets/events/' + req.params.image ) );
} );
app.get( '/otherAssets/:image', ( req, res ) => {
res.sendFile( path.join( __dirname + '/../assets/' + req.params.image ) );
} );
};