Skip to content

Commit

Permalink
resolved conflict with response hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
briangormanly committed Oct 27, 2023
1 parent e60f27b commit 887d613
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions server/agora.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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() );


Expand Down

0 comments on commit 887d613

Please sign in to comment.