From 585ba8dcf8afe1dd22c9b8bca887b81da7d7b051 Mon Sep 17 00:00:00 2001 From: Benjamin Wilson Friedman Date: Thu, 4 Feb 2016 01:24:51 -0800 Subject: [PATCH] Update express app to use 'mountPath' instead of / --- bin/parse-server | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/parse-server b/bin/parse-server index 57488af8..c2606f4b 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 +});