Skip to content

Commit c106ac6

Browse files
committed
Merge pull request #239 from montymxb/patch-1
Update express app to use 'mountPath' instead of /
2 parents 72fa1f2 + 585ba8d commit c106ac6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/parse-server

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ if (process.env.PARSE_SERVER_OPTIONS) {
3535

3636
var mountPath = process.env.PARSE_SERVER_MOUNT_PATH || "/";
3737
var api = new ParseServer(options);
38-
app.use('/', api);
38+
app.use(mountPath, api);
3939

4040
var port = process.env.PORT || 1337;
4141
app.listen(port, function() {
4242
console.log('parse-server-example running on http://localhost:'+ port + mountPath);
43-
});
43+
});

0 commit comments

Comments
 (0)