12345678910111213 |
- 'use strict';
- /**
- * @param {Egg.Application} app - egg application
- */
- module.exports = app => {
- const { router, controller } = app;
- const { routePrefix, cluster } = app.config;
- router.get('/', controller.home.index);
- console.log(`${routePrefix}/sendEmail`);
- router.post(`${routePrefix}/sendEmail`, controller.email.sendEmail);
- router.post(`${routePrefix}/error`, controller.email.error);
- };
|