Node.js开发人员在控制台中获取和发布路由?

时间:2015-12-08 22:22:02

标签: javascript node.js post get console

我从github下载的许多项目都有post和get路径显示在控制台中。但是,我不确定它们的创建方式和位置。我并不积极,但我认为这与“垃圾邮件”/“垃圾邮件”有关。这些项目中的目录。我确定之前有人经历过这个。

Console

编辑: prob没有为这个问题提供足够的信息,所以继承人' package.json'因为这可能有助于解决问题。

 {
  "name": "passport-mongo",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node ./bin/www"
  },
  "dependencies": {
    "express": "~4.2.0",
    "static-favicon": "~1.0.0",
    "morgan": "~1.0.0",
    "cookie-parser": "~1.0.1",
    "body-parser": "~1.0.0",
    "express-session": "~1.0.4",
    "debug": "~0.7.4",
    "ejs": "*",
    "jade": "~1.3.0",
    "passport": "~0.2.0",
    "passport-local": "~1.0.0",
    "mongoose": "~3.8.12",
    "bcrypt-nodejs" : "*",
    "moment": "*",
    "path": "*",
    "mysql": "*",
    "nodemailer": "*",
    "moment": "*",
    "fs": "*",
    "express-myconnection": "*",
    "crypto": "*",
    "connect-flash" : "*"
  }
}

1 个答案:

答案 0 :(得分:2)

在控制台中记录您的请求的中间件称为Morgan。这是GitHub项目的URL

https://github.com/expressjs/morgan