This commit is contained in:
syuilo
2018-07-06 23:52:47 +09:00
parent 42d4e6610f
commit e74c1f2ac6
3 changed files with 9 additions and 2 deletions

View File

@ -31,7 +31,7 @@ export default (endpoint: string | Endpoint, user: IUser, app: IApp, data: any,
}
}
let exec = require(`${__dirname}/endpoints/${ep.name}`);
let exec = require(`${__dirname}/endpoints/${ep.name}`).default;
if (ep.withFile && file) {
exec = exec.bind(null, file);