From 8f856bca4eb361a756e5342254b471120ca7ed84 Mon Sep 17 00:00:00 2001 From: Kevin Poirot Date: Sun, 14 May 2023 20:22:55 +0200 Subject: [PATCH] feat: Allow custom mount path for express middleware Signed-off-by: Kevin Poirot --- Parse-Dashboard/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Parse-Dashboard/app.js b/Parse-Dashboard/app.js index 2b4c73fca0..9f6af87229 100644 --- a/Parse-Dashboard/app.js +++ b/Parse-Dashboard/app.js @@ -64,7 +64,7 @@ module.exports = function(config, options) { // wait for app to mount in order to get mountpath app.on('mount', function() { - const mountPath = getMount(app.mountpath); + const mountPath = getMount(options.mountPath || app.mountpath); const users = config.users; const useEncryptedPasswords = config.useEncryptedPasswords ? true : false; const authInstance = new Authentication(users, useEncryptedPasswords, mountPath);