Cannot GET / Nodejs Error

后端 未结 4 1208
面向向阳花
面向向阳花 2020-12-16 16:06

I\'m using the tutorial found here: http://addyosmani.github.io/backbone-fundamentals/#create-a-simple-web-server and added the following code.

// Module dep         


        
4条回答
  •  一个人的身影
    2020-12-16 16:50

    I think you're missing your routes, you need to define at least one route for example '/' to index.

    e.g.

    app.get('/', function (req, res) {
      res.render('index', {});
    });
    

提交回复
热议问题