mirror of
https://github.com/janishutz/libreevent.git
synced 2026-09-22 13:15:25 +02:00
various small changes + almost complete ticket gen
This commit is contained in:
1 parent
836b56b69d
commit
581e7143f7
16 files changed
+118
-46
No files matched your search
@@ -14,11 +14,11 @@ const getHandler = new geth();
|
||||
const path = require( 'path' );
|
||||
|
||||
// settings is missing in arguments which shouldn't pose any problem
|
||||
module.exports = ( app ) => {
|
||||
module.exports = ( app, settings ) => {
|
||||
// Add specific routes here to have them be checked first to not get general handling
|
||||
|
||||
app.get( '/getAPI/:call', ( req, res ) => {
|
||||
getHandler.handleCall( req.params.call, req.query, req.session ).then( data => {
|
||||
getHandler.handleCall( req.params.call, req.query, req.session, settings ).then( data => {
|
||||
if ( req.params.call === 'getReservedSeats' ) {
|
||||
let dat = data;
|
||||
dat[ 'reserved' ] = postHandler.getReservedSeats( req.query.event );
|
||||
|
||||
Reference in new issue
Block a user