diff --git a/src/ParseServer.js b/src/ParseServer.js index 9be0059d9c..fb3ec34259 100644 --- a/src/ParseServer.js +++ b/src/ParseServer.js @@ -266,8 +266,6 @@ class ParseServer { app.use(middleware); } - app.use(options.mountPath, this.app); - if (options.mountGraphQL === true || options.mountPlayground === true) { let graphQLCustomTypeDefs = undefined; if (typeof options.graphQLSchema === 'string') { @@ -294,6 +292,8 @@ class ParseServer { } } + app.use(options.mountPath, this.app); + const server = app.listen(options.port, options.host, callback); this.server = server;