Skip to content

Commit eadf4b1

Browse files
committed
Merge pull request #62 from mrsmuneton/master
Example for serving files from parse/public directory like a domain.parseapp.com webapp.
2 parents 67be8e5 + 691544b commit eadf4b1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ app.use(mountPath, api);
3535
app.get('/', function(req, res) {
3636
res.status(200).send('I dream of being a web site.');
3737
});
38+
// If you are migrating a webapp hosted on domain.parseapp.com:
39+
// Remove statement above serving the 200 status (app.get('/ function()});
40+
// Uncomment app.use below and set the absolute path for serving files in the /public dir
41+
// app.use(express.static(__dirname + '/public'));
3842

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

0 commit comments

Comments
 (0)