mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-26 01:18:40 +03:00
optimize skipSegments, add eTag
- moved skipSegments parameter parsing to new file - added oldGetVideoSponsorTimes to getSkipSegments.ts
This commit is contained in:
@@ -2,9 +2,9 @@ import { db } from "../databases/databases";
|
||||
import { Request, Response } from "express";
|
||||
|
||||
export async function viewedVideoSponsorTime(req: Request, res: Response): Promise<Response> {
|
||||
const UUID = req.query.UUID;
|
||||
const UUID = req.query?.UUID;
|
||||
|
||||
if (UUID == undefined) {
|
||||
if (!UUID) {
|
||||
//invalid request
|
||||
return res.sendStatus(400);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user