mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-08 04:27:09 +03:00
fix eslint for tests
This commit is contained in:
@@ -1,27 +1,27 @@
|
||||
import express from 'express';
|
||||
import {config} from '../src/config';
|
||||
import { Server } from 'http';
|
||||
import express from "express";
|
||||
import {config} from "../src/config";
|
||||
import { Server } from "http";
|
||||
|
||||
const app = express();
|
||||
|
||||
app.post('/ReportChannelWebhook', (req, res) => {
|
||||
app.post("/ReportChannelWebhook", (req, res) => {
|
||||
res.sendStatus(200);
|
||||
});
|
||||
|
||||
app.post('/FirstTimeSubmissionsWebhook', (req, res) => {
|
||||
app.post("/FirstTimeSubmissionsWebhook", (req, res) => {
|
||||
res.sendStatus(200);
|
||||
});
|
||||
|
||||
app.post('/CompletelyIncorrectReportWebhook', (req, res) => {
|
||||
app.post("/CompletelyIncorrectReportWebhook", (req, res) => {
|
||||
res.sendStatus(200);
|
||||
});
|
||||
|
||||
// Testing NeuralBlock
|
||||
app.post('/NeuralBlockRejectWebhook', (req, res) => {
|
||||
app.post("/NeuralBlockRejectWebhook", (req, res) => {
|
||||
res.sendStatus(200);
|
||||
});
|
||||
|
||||
app.get('/NeuralBlock/api/checkSponsorSegments', (req, res) => {
|
||||
app.get("/NeuralBlock/api/checkSponsorSegments", (req, res) => {
|
||||
if (req.query.vid === "LevkAjUE6d4") {
|
||||
res.json({
|
||||
probabilities: [0.69],
|
||||
@@ -32,7 +32,7 @@ app.get('/NeuralBlock/api/checkSponsorSegments', (req, res) => {
|
||||
});
|
||||
|
||||
//getSponsorSegments is no longer being used for automod
|
||||
app.get('/NeuralBlock/api/getSponsorSegments', (req, res) => {
|
||||
app.get("/NeuralBlock/api/getSponsorSegments", (req, res) => {
|
||||
if (req.query.vid === "LevkAjUE6d4") {
|
||||
res.json({
|
||||
sponsorSegments: [[0.47, 7.549], [264.023, 317.293]],
|
||||
@@ -43,7 +43,7 @@ app.get('/NeuralBlock/api/getSponsorSegments', (req, res) => {
|
||||
});
|
||||
|
||||
// Testing webhooks
|
||||
app.post('/CustomWebhook', (req, res) => {
|
||||
app.post("/CustomWebhook", (req, res) => {
|
||||
res.sendStatus(200);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user