From c0efc890839dd23bbb420b1fe850be16cc12656f Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Tue, 9 Jul 2019 14:44:40 -0400 Subject: [PATCH] Changed api endpoints --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 993ce04..579f777 100644 --- a/index.js +++ b/index.js @@ -15,7 +15,7 @@ var db = new sqlite3.Database('./databases/sponsorTimes.db'); http.createServer(app).listen(80); //add the get function -app.get('/api/get', function (req, res) { +app.get('/api/getVideoSponsorTimes', function (req, res) { let videoID = req.query.videoID; let sponsorTimes = []; @@ -38,7 +38,7 @@ app.get('/api/get', function (req, res) { }); //add the post function -app.get('/api/post', function (req, res) { +app.get('/api/postVideoSponsorTimes', function (req, res) { let videoID = req.query.videoID; let startTime = req.query.startTime; let endTime = req.query.endTime;