Added neural block mock

This commit is contained in:
Ajay Ramachandran
2020-04-30 19:13:42 -04:00
parent 0cf84612e9
commit a278036f1d
5 changed files with 21 additions and 6 deletions

View File

@@ -15,6 +15,17 @@ app.post('/CompletelyIncorrectReportWebhook', (req, res) => {
res.sendStatus(200);
});
app.get('/NeuralBlock/api/getSponsorSegments', (req, res) => {
if (req.query.vid === "LevkAjUE6d4") {
res.json({
sponsorSegments: [[0.47,7.549],[264.023,317.293]]
});
return;
}
res.sendStatus(500);
});
module.exports = function createMockServer(callback) {
return app.listen(config.mockPort, callback);
}