From 1da28e930df1438fee1528c4dbb2c024fc3824e7 Mon Sep 17 00:00:00 2001 From: Waref Haque Date: Fri, 22 Jul 2016 17:41:07 -0400 Subject: add solutions --- routes/index.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/routes/index.js b/routes/index.js index 1b00f41..97291a7 100644 --- a/routes/index.js +++ b/routes/index.js @@ -173,6 +173,14 @@ router.get('/solutions/:exam_id/:q_num', function (req, res) { }); }); +router.get('/add_solution',function (req, res) { + redirect('/add_solutions_page'); +}); + + +router.post('/add_solutions/submit', function (req, res) { + //TODO: get the form information for the solutions +}) /**** Helpers ****/ function getExamsForCourseCode(courseCode) { -- cgit v1.2.3