File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,9 @@ let openConnections = {};
107
107
var app = express ( ) ;
108
108
var api = new ParseServer ( defaultConfiguration ) ;
109
109
app . use ( '/1' , api ) ;
110
+ app . use ( '/1' , ( req , res ) => {
111
+ fail ( 'should not call next' ) ;
112
+ } ) ;
110
113
var server = app . listen ( port ) ;
111
114
server . on ( 'connection' , connection => {
112
115
let key = `${ connection . remoteAddress } :${ connection . remotePort } ` ;
@@ -126,7 +129,9 @@ const reconfigureServer = changedConfiguration => {
126
129
api = new ParseServer ( newConfiguration ) ;
127
130
api . use ( require ( './testing-routes' ) . router ) ;
128
131
app . use ( '/1' , api ) ;
129
-
132
+ app . use ( '/1' , ( req , res ) => {
133
+ fail ( 'should not call next' ) ;
134
+ } ) ;
130
135
server = app . listen ( port ) ;
131
136
server . on ( 'connection' , connection => {
132
137
let key = `${ connection . remoteAddress } :${ connection . remotePort } ` ;
You can’t perform that action at this time.
0 commit comments