Fixed database endpoint and getDatsSavedFormatted

This commit is contained in:
Ajay Ramachandran
2020-04-19 19:39:40 -04:00
parent f8340d770c
commit ad2fe00af0

View File

@@ -82,10 +82,10 @@ app.get('/api/getTopUsers', getTopUsers);
app.get('/api/getTotalStats', getTotalStats);
//send out a formatted time saved total
app.get('/api/getdayssavedformatted', getDaysSavedFormatted);
app.get('/api/getDaysSavedFormatted', getDaysSavedFormatted);
app.get('/database.db', function (req, res) {
res.sendFile("./databases/sponsorTimes.db", { root: __dirname });
res.sendFile("./databases/sponsorTimes.db", { root: "./" });
});
// Create an HTTP service.