feat(notifications): Webhook Notifications (#632)

This commit is contained in:
sct
2021-01-12 18:28:42 +09:00
committed by GitHub
parent 1aa0005b42
commit a7cc7c5975
14 changed files with 928 additions and 191 deletions

View File

@@ -21,6 +21,7 @@ import TelegramAgent from './lib/notifications/agents/telegram';
import { getAppVersion } from './utils/appVersion';
import SlackAgent from './lib/notifications/agents/slack';
import PushoverAgent from './lib/notifications/agents/pushover';
import WebhookAgent from './lib/notifications/agents/webhook';
const API_SPEC_PATH = path.join(__dirname, '../overseerr-api.yml');
@@ -51,6 +52,7 @@ app
new SlackAgent(),
new TelegramAgent(),
new PushoverAgent(),
new WebhookAgent(),
]);
// Start Jobs
@@ -98,7 +100,6 @@ app
};
next();
});
server.use('/api/v1', routes);
server.get('*', (req, res) => handle(req, res));
server.use(