123456789101112131415161718192021222324 |
- 'use strict';
- const path = require('path');
- // const naf = require('naf-framework');
- const egg = require('egg');
- const EGG_PATH = Symbol.for('egg#eggPath');
- class Application extends egg.Application {
- get [EGG_PATH]() {
- return path.dirname(__dirname);
- }
- }
- class Agent extends egg.Agent {
- get [EGG_PATH]() {
- return path.dirname(__dirname);
- }
- }
- module.exports = Object.assign(egg, {
- Application,
- Agent,
- });
|