{"size": 460, "ext": "js", "max_stars_repo_path": "server/routes/users.js", "max_stars_repo_name": "Link-kkkkk/node-blog-wheel", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "server/routes/users.js", "max_issues_repo_name": "Link-kkkkk/node-blog-wheel", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "server/routes/users.js", "max_forks_repo_name": "Link-kkkkk/node-blog-wheel", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 21.9047619048, "max_line_length": 42, "alphanum_fraction": 0.6282608696}
const express = require('express')
const router = express.Router()

const User = require('../lib/mongo').User

router.get('/:name', function (req, res) {
  // render的路径是index里面设置的路径
  res.render('users', {
    // include组件的参数同样是在这里render的
    title: 'hi ' + req.params.name,
    name: req.params.name,
  })
})

module.exports = router
// module.exports = {
//   // 注册一个用户
//   create: function create (user) {
//     return User.create(user).exec()
//   }
// }