diff --git a/server/controllers/analyze.controller.js b/server/controllers/analyze.controller.js index 538356c..8d75545 100644 --- a/server/controllers/analyze.controller.js +++ b/server/controllers/analyze.controller.js @@ -44,7 +44,7 @@ module.exports.searchSentences = async (req, res) => { } }; -module.exports.detectAverageMood = async (req, res) => { +module.exports.detectAverageTone = async (req, res) => { try { const { userId } = req; let averageMood; diff --git a/server/routes/analyze.route.js b/server/routes/analyze.route.js index 6098ae4..b73f152 100644 --- a/server/routes/analyze.route.js +++ b/server/routes/analyze.route.js @@ -1,7 +1,7 @@ const { searchEntries, searchSentences, - detectAverageMood, + detectAverageTone, } = require("../controllers/analyze.controller"); const { authJwt } = require("../middleware"); @@ -21,5 +21,5 @@ module.exports = function (app) { searchSentences ); - app.get("/api/analyze/averagemood", [authJwt.verifyToken], detectAverageMood); + app.get("/api/analyze/averagetone", [authJwt.verifyToken], detectAverageTone); };