fixed db update, started no segments

This commit is contained in:
Joe Dowd
2020-08-22 02:14:19 +01:00
parent c1d4ba3c80
commit 44ea0c418a
10 changed files with 247 additions and 7 deletions

View File

@@ -21,6 +21,7 @@ var getViewsForUser = require('./routes/getViewsForUser.js');
var getTopUsers = require('./routes/getTopUsers.js');
var getTotalStats = require('./routes/getTotalStats.js');
var getDaysSavedFormatted = require('./routes/getDaysSavedFormatted.js');
var postNoSegments = require('./routes/postNoSegments.js');
// Old Routes
var oldGetVideoSponsorTimes = require('./routes/oldGetVideoSponsorTimes.js');
@@ -86,6 +87,9 @@ app.get('/api/getTotalStats', getTotalStats);
//send out a formatted time saved total
app.get('/api/getDaysSavedFormatted', getDaysSavedFormatted);
//submit video containing no segments
app.post('/api/postNoSegments', postNoSegments);
app.get('/database.db', function (req, res) {
res.sendFile("./databases/sponsorTimes.db", { root: "./" });
});