1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-12-25 12:08:26 +09:00
misskey/src/processor/http/index.ts

14 lines
370 B
TypeScript
Raw Normal View History

2018-04-01 19:43:26 +09:00
import follow from './follow';
2018-03-31 19:55:00 +09:00
import performActivityPub from './perform-activitypub';
2018-04-02 18:36:47 +09:00
import processInbox from './process-inbox';
2018-03-31 19:55:00 +09:00
import reportGitHubFailure from './report-github-failure';
const handlers = {
2018-04-01 19:43:26 +09:00
follow,
2018-03-31 19:55:00 +09:00
performActivityPub,
2018-04-02 18:36:47 +09:00
processInbox,
2018-03-31 19:55:00 +09:00
reportGitHubFailure,
};
export default (job, done) => handlers[job.data.type](job).then(() => done(), done);