Merge pull request #239 from montymxb/patch-1
Update express app to use 'mountPath' instead of /
This commit is contained in:
@@ -35,9 +35,9 @@ if (process.env.PARSE_SERVER_OPTIONS) {
|
|||||||
|
|
||||||
var mountPath = process.env.PARSE_SERVER_MOUNT_PATH || "/";
|
var mountPath = process.env.PARSE_SERVER_MOUNT_PATH || "/";
|
||||||
var api = new ParseServer(options);
|
var api = new ParseServer(options);
|
||||||
app.use('/', api);
|
app.use(mountPath, api);
|
||||||
|
|
||||||
var port = process.env.PORT || 1337;
|
var port = process.env.PORT || 1337;
|
||||||
app.listen(port, function() {
|
app.listen(port, function() {
|
||||||
console.log('parse-server-example running on http://localhost:'+ port + mountPath);
|
console.log('parse-server-example running on http://localhost:'+ port + mountPath);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user