mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-10 21:47:02 +03:00
Move purgeAllSegments up in app.ts
This commit is contained in:
@@ -142,7 +142,10 @@ function setupRoutes(app: Express) {
|
|||||||
//clear cache as VIP
|
//clear cache as VIP
|
||||||
app.post('/api/clearCache', postClearCache);
|
app.post('/api/clearCache', postClearCache);
|
||||||
|
|
||||||
app.post('/api/unlistedVideo', addUnlistedVideo)
|
//purge all segments for VIP
|
||||||
|
app.post('/api/purgeAllSegments', postPurgeAllSegments);
|
||||||
|
|
||||||
|
app.post('/api/unlistedVideo', addUnlistedVideo);
|
||||||
|
|
||||||
if (config.postgres) {
|
if (config.postgres) {
|
||||||
app.get('/database', (req, res) => dumpDatabase(req, res, true));
|
app.get('/database', (req, res) => dumpDatabase(req, res, true));
|
||||||
@@ -153,7 +156,4 @@ function setupRoutes(app: Express) {
|
|||||||
res.sendFile("./databases/sponsorTimes.db", {root: "./"});
|
res.sendFile("./databases/sponsorTimes.db", {root: "./"});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
//purge all segments for VIP
|
|
||||||
app.post('/api/purgeAllSegments', postPurgeAllSegments);
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user