diff --git a/bin/parse-server b/bin/parse-server index 57488af82d..c2606f4b67 100755 --- a/bin/parse-server +++ b/bin/parse-server @@ -35,9 +35,9 @@ if (process.env.PARSE_SERVER_OPTIONS) { var mountPath = process.env.PARSE_SERVER_MOUNT_PATH || "/"; var api = new ParseServer(options); -app.use('/', api); +app.use(mountPath, api); var port = process.env.PORT || 1337; app.listen(port, function() { console.log('parse-server-example running on http://localhost:'+ port + mountPath); -}); \ No newline at end of file +});