瀏覽代碼

Add root route message back and moves test screen to '/test' route

Marcus Gadbem 9 年之前
父節點
當前提交
7eaea73f90
共有 2 個文件被更改,包括 6 次插入2 次删除
  1. 5 1
      index.js
  2. 1 1
      public/index.html

+ 5 - 1
index.js

@@ -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;

+ 1 - 1
public/index.html

@@ -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>