mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-01 08:05:39 +02:00
w
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user