Skip to content

Commit e8e899c

Browse files
committed
revert app change
1 parent 233e614 commit e8e899c

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

Parse-Dashboard/app.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ module.exports = function (config, options) {
107107
});
108108

109109
// Serve the configuration.
110-
app.get('/parse-dashboard-config.json', async function (req, res) {
110+
app.get('/parse-dashboard-config.json', async (req, res) => {
111111
const apps = config.apps.map(app => Object.assign({}, app)); // make a copy
112112
const response = {
113113
apps,
@@ -1282,7 +1282,7 @@ You have direct access to the Parse database through function calls, so you can
12821282
});
12831283

12841284
// For every other request, go to index.html. Let client-side handle the rest.
1285-
app.get('/*', function (req, res, next) {
1285+
app.get('/*', function (req, res) {
12861286
if (users && (!req.user || !req.user.isAuthenticated)) {
12871287
const redirect = req.url.replace('/login', '');
12881288
if (redirect.length > 1) {
@@ -1293,8 +1293,7 @@ You have direct access to the Parse database through function calls, so you can
12931293
if (users && req.user && req.user.matchingUsername) {
12941294
res.append('username', req.user.matchingUsername);
12951295
}
1296-
if (!req.path.startsWith('/v2')) {
1297-
res.send(`<!DOCTYPE html>
1296+
res.send(`<!DOCTYPE html>
12981297
<html>
12991298
<head>
13001299
<link rel="shortcut icon" type="image/x-icon" href="${mountPath}favicon.ico" />
@@ -1311,9 +1310,6 @@ You have direct access to the Parse database through function calls, so you can
13111310
</body>
13121311
</html>
13131312
`);
1314-
} else {
1315-
next();
1316-
}
13171313
});
13181314
});
13191315

0 commit comments

Comments
 (0)