Skip to content

Commit

Permalink
change mapping order
Browse files Browse the repository at this point in the history
  • Loading branch information
rcpeters committed Apr 19, 2017
1 parent 55d5f83 commit 973e2a7
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,10 @@ app.get([COLLECTION_EDIT], function(req, res) { // Index page
});
});

app.get([CREATE_SMID_EMAIL, '/'], function(req, res) { // Index page
res.status(200).sendFile(index_file);
});

app.get([COLLECTION_SHARE, ADD_ID_SUCCESS, ADD_ID_ERROR], function(req, res) { // Index page
smidManger.detailsExist(req.params.publicKey, function(err, bool) {
if (bool == true)
Expand All @@ -283,11 +287,3 @@ app.get([COLLECTION_SHARE, ADD_ID_SUCCESS, ADD_ID_ERROR], function(req, res) { /
res.sendFile(PAGE_404);
});
});

app.get(CREATE_SMID_EMAIL, function(req, res) {
res.status(200).sendFile(index_file);
});

app.get([CREATE_SMID_EMAIL, '/'], function(req, res) { // Index page
res.status(200).sendFile(index_file);
});

0 comments on commit 973e2a7

Please sign in to comment.