Move purgeAllSegments up in app.ts

This commit is contained in:
Ajay Ramachandran 2021-06-24 01:37:50 -04:00
parent 0bbb2aa60d
commit 8312cfc0aa

View file

@ -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);
}