1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-12-25 20:18:28 +09:00
misskey/src/processor/http/index.ts
2018-04-03 02:10:43 +09:00

16 lines
427 B
TypeScript

import deliverPost from './deliver-post';
import follow from './follow';
import performActivityPub from './perform-activitypub';
import processInbox from './process-inbox';
import reportGitHubFailure from './report-github-failure';
const handlers = {
deliverPost,
follow,
performActivityPub,
processInbox,
reportGitHubFailure,
};
export default (job, done) => handlers[job.data.type](job).then(() => done(), done);