From ad2fe00af0f333a6a42ccc559fd9a55f73647606 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Sun, 19 Apr 2020 19:39:40 -0400 Subject: [PATCH] Fixed database endpoint and getDatsSavedFormatted --- src/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app.js b/src/app.js index 043ce44..4ad83ff 100644 --- a/src/app.js +++ b/src/app.js @@ -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.