mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 01:02:30 +01:00
18 lines
No EOL
441 B
JavaScript
18 lines
No EOL
441 B
JavaScript
var express = require('express');
|
|
var app = express();
|
|
|
|
var config = require('../src/config.js');
|
|
|
|
app.post('/ReportChannelWebhook', (req, res) => {
|
|
console.log("report mock hit");
|
|
res.status(200);
|
|
});
|
|
|
|
app.post('/FirstTimeSubmissionsWebhook', (req, res) => {
|
|
console.log("first time submisson mock hit");
|
|
res.status(200);
|
|
});
|
|
|
|
module.exports = function createMockServer(callback) {
|
|
return app.listen(config.mockPort, callback);
|
|
}
|