Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

陆宇天 / tracking-backend

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • tracking-backend
  • config
  • plugin.js
  • luyt's avatar
    other:1.cors注释2.list接口添加total · 627d0175
    luyt committed Jun 29, 2022
    627d0175 Browse Files
plugin.js 377 Bytes
RawBlameHistoryPermalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
'use strict';

/** @type Egg.EggPlugin */
module.exports = {
  // had enabled by egg
  // static: {
  //   enable: true,
  // }
  // 跨域配置
  // cors: {
  //   enable: true,
  //   package: 'egg-cors',
  // },
  sequelize: {
    enable: true,
    package: 'egg-sequelize',
  },
  // 数据格式校验
  validate: {
    enable: true,
    package: 'egg-validate',
  },
};