stripe integration done, handling missing still

This commit is contained in:
2023-08-03 15:37:50 +02:00
parent 19874cd007
commit 8784f79014
7 changed files with 39 additions and 12 deletions

View File

@@ -12,6 +12,7 @@ const geth = require( './api/getHandler.js' );
const postHandler = new posth();
const getHandler = new geth();
const path = require( 'path' );
const bodyParser = require( 'body-parser' );
// settings is missing in arguments which shouldn't pose any problem
module.exports = ( app, settings ) => {
@@ -31,7 +32,7 @@ module.exports = ( app, settings ) => {
} );
} );
app.post( '/API/:call', ( req, res ) => {
app.post( '/API/:call', bodyParser.json(), ( req, res ) => {
// add lang in the future
postHandler.handleCall( req.params.call, req.body, req.session ).then( data => {
res.send( data );