text: /**
   * 注册和登录的处理
   */
  
  const express = require('express')
  const path = require('path')
  
  //创建路由对象
  const accountRouter = express.Router()
  
  //导入控制器模块
  const accountController = require(path.join(__dirname, '../controllers/accountController'))
  
  //获取注册页面的请求
  accountRouter.get('/register', accountController.getRegisterPage)
  
  //注册
  accountRouter.post('/register', accountController.register)
  
  //获取登录页面的请求
  accountRouter.get('/login', accountController.getLoginPage)
  
  //获取图片验证码
  accountRouter.get('/vcode', accountController.getVcodeImage)
  
  //登录
  accountRouter.post('/login',accountController.login)  
  
  //导出路由对象 
  module.exports = accountRouter