summaryrefslogtreecommitdiff
path: root/src/processor/http/index.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2018-03-31 20:50:40 +0900
committerGitHub <noreply@github.com>2018-03-31 20:50:40 +0900
commiteafb0f61ef6465697a0fbd9b931fc306417cd2a1 (patch)
tree7d6c502c1e2c61eb3327f678f766f23bda10c1e7 /src/processor/http/index.ts
parentデフォルトでドライブ容量は128MiBにした (diff)
parentImplement remote status retrieval (diff)
downloadsharkey-eafb0f61ef6465697a0fbd9b931fc306417cd2a1.tar.gz
sharkey-eafb0f61ef6465697a0fbd9b931fc306417cd2a1.tar.bz2
sharkey-eafb0f61ef6465697a0fbd9b931fc306417cd2a1.zip
Merge pull request #1341 from akihikodaki/github
Implement remote status retrieval
Diffstat (limited to 'src/processor/http/index.ts')
-rw-r--r--src/processor/http/index.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/processor/http/index.ts b/src/processor/http/index.ts
new file mode 100644
index 0000000000..da942ad2a1
--- /dev/null
+++ b/src/processor/http/index.ts
@@ -0,0 +1,9 @@
+import performActivityPub from './perform-activitypub';
+import reportGitHubFailure from './report-github-failure';
+
+const handlers = {
+ performActivityPub,
+ reportGitHubFailure,
+};
+
+export default (job, done) => handlers[job.data.type](job).then(() => done(), done);