Skip to content

Commit

Permalink
Update express app to use 'mountPath' instead of /
Browse files Browse the repository at this point in the history
  • Loading branch information
montymxb committed Feb 4, 2016
1 parent 72fa1f2 commit 585ba8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/parse-server
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
});

0 comments on commit 585ba8d

Please sign in to comment.