mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-08 12:37:00 +03:00
Add purge all segments of VideoId
This commit is contained in:
@@ -31,6 +31,7 @@ import dumpDatabase, {redirectLink} from './routes/dumpDatabase';
|
||||
import {endpoint as getSegmentInfo} from './routes/getSegmentInfo';
|
||||
import {postClearCache} from './routes/postClearCache';
|
||||
import { addUnlistedVideo } from './routes/addUnlistedVideo';
|
||||
import {postPurgeAllSegments} from './routes/postPurgeAllSegments';
|
||||
|
||||
export function createServer(callback: () => void) {
|
||||
// Create a service (the app object is just a callback).
|
||||
@@ -139,7 +140,7 @@ function setupRoutes(app: Express) {
|
||||
app.get('/api/segmentInfo', getSegmentInfo);
|
||||
|
||||
//clear cache as VIP
|
||||
app.post('/api/clearCache', postClearCache)
|
||||
app.post('/api/clearCache', postClearCache);
|
||||
|
||||
app.post('/api/unlistedVideo', addUnlistedVideo)
|
||||
|
||||
@@ -152,4 +153,7 @@ function setupRoutes(app: Express) {
|
||||
res.sendFile("./databases/sponsorTimes.db", {root: "./"});
|
||||
});
|
||||
}
|
||||
|
||||
//purge all segments for VIP
|
||||
app.post('/api/purgeAllSegments', postPurgeAllSegments);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user