Skip to content

Commit 7eaea73

Browse files
committed
Add root route message back and moves test screen to '/test' route
1 parent c54ce05 commit 7eaea73

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@ app.use(mountPath, api);
3333

3434
// Parse Server plays nicely with the rest of your web routes
3535
app.get('/', function(req, res) {
36-
res.sendFile(path.join(__dirname, '/public/index.html'));
36+
res.status(200).send('I dream of being a web site.');
37+
});
38+
39+
app.get('/test', function(req, res) {
40+
res.sendFile(path.join(__dirname, '/public/test.html'));
3741
});
3842

3943
var port = process.env.PORT || 1337;

public/index.html renamed to public/test.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
</div>
8282
<div class="pure-u-4-5">
8383
<p id="local-parse-working">
84-
Congrats! Our local Parse is server working. :)
84+
Congrats! Our local Parse server is working. :)
8585
</p>
8686
</div>
8787
</div>

0 commit comments

Comments
 (0)