weixin.js 311 B

12345678910
  1. 'use strict';
  2. module.exports = app => {
  3. const { router, controller, config } = app;
  4. const profix = `/api${config.appName ? `/${config.appName}` : ''}`;
  5. const index = 'system';
  6. const target = 'weixin';
  7. router.get(target, `${profix}/${index}/${target}/appAuth`, controller[index][target].appAuth);
  8. };