From 887d613d799beddd5135d9c0dfcb527bab41131e Mon Sep 17 00:00:00 2001 From: Brian Gormanly Date: Fri, 27 Oct 2023 12:17:45 -0400 Subject: [PATCH] resolved conflict with response hooks --- server/agora.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/server/agora.js b/server/agora.js index 0c0ced6c..dfd528eb 100644 --- a/server/agora.js +++ b/server/agora.js @@ -14,8 +14,7 @@ require( "dotenv" ).config(); // manage parsing json from body of the request const bodyParser = require( "body-parser" ); -// library that allows us to hook responses in the middleware -const responseHooks = require( "express-response-hooks" ); + var path = require( "path" ); app.use( @@ -25,6 +24,10 @@ app.use( ); app.use( bodyParser.json() ); + +// library that allows us to hook responses in the middleware +const responseHooks = require( "express-response-hooks" ); + app.use( responseHooks() );