From 8312cfc0aadb248f81d21ba012fb96419a3559c4 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Thu, 24 Jun 2021 01:37:50 -0400 Subject: [PATCH] Move purgeAllSegments up in app.ts --- src/app.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app.ts b/src/app.ts index 6d2406b..71a85bd 100644 --- a/src/app.ts +++ b/src/app.ts @@ -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); }