diff --git a/node/app.js b/node/app.js index 1199fee..510af01 100644 --- a/node/app.js +++ b/node/app.js @@ -77,15 +77,24 @@ app.post("/maths/submit-topics", (req,res) => { console.log("Problem: ", problem) console.log("Solution: ", solution) - res.send(`${topic_str}
- ${subtopic_str}
+ res.send(` +

${topic_str}


+

${subtopic_str}


${problem}
-
`) + + + `) }); app.post("/maths/answer", (req,res) => { @@ -94,13 +103,23 @@ app.post("/maths/answer", (req,res) => { console.log(req.body.subtopic) let topic = Number(req.body.topic) let subtopic = validator.escape(req.body.subtopic) - res.send(`${req.body.solution} + res.send(` +

Answer:

+ ${req.body.solution}
- `) + + + `) }); app.post("/board/submit-comment", (req,res) => {