weixin.js 409 B

1234567891011
  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. router.post(target, `${profix}/${index}/${target}/decrypt`, controller[index][target].decrypt);
  9. };