mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 01:02:30 +01:00
Move purgeAllSegments up in app.ts
This commit is contained in:
parent
0bbb2aa60d
commit
8312cfc0aa
1 changed files with 4 additions and 4 deletions
|
@ -142,7 +142,10 @@ function setupRoutes(app: Express) {
|
|||
//clear cache as VIP
|
||||
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) {
|
||||
app.get('/database', (req, res) => dumpDatabase(req, res, true));
|
||||
|
@ -153,7 +156,4 @@ function setupRoutes(app: Express) {
|
|||
res.sendFile("./databases/sponsorTimes.db", {root: "./"});
|
||||
});
|
||||
}
|
||||
|
||||
//purge all segments for VIP
|
||||
app.post('/api/purgeAllSegments', postPurgeAllSegments);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue