Skip to content

Commit

Permalink
Add root route message back and moves test screen to '/test' route
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusgadbem committed Mar 15, 2016
1 parent c54ce05 commit 7eaea73
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ app.use(mountPath, api);

// Parse Server plays nicely with the rest of your web routes
app.get('/', function(req, res) {
res.sendFile(path.join(__dirname, '/public/index.html'));
res.status(200).send('I dream of being a web site.');
});

app.get('/test', function(req, res) {
res.sendFile(path.join(__dirname, '/public/test.html'));
});

var port = process.env.PORT || 1337;
Expand Down
2 changes: 1 addition & 1 deletion public/index.html → public/test.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
</div>
<div class="pure-u-4-5">
<p id="local-parse-working">
Congrats! Our local Parse is server working. :)
Congrats! Our local Parse server is working. :)
</p>
</div>
</div>
Expand Down

0 comments on commit 7eaea73

Please sign in to comment.