text: const Router = require('@koa/router')
  
  const { verifyLogin } = require('../middleware/auth.middleware')
  const { login } = require('../controller/auth.controller')
  const { reg_login_schema } = require('../schema/admin.schema')
  
  const adminRouter = new Router({ prefix: '/admin' })
  
  // 小程序用户授权登录，将用户信息存入数据库
  adminRouter.post('/login', verifyLogin(reg_login_schema), login)
  
  module.exports = adminRouter
  