diff options
| author | Waref Haque <warefhaque@inside-239-60.wireless.utoronto.ca> | 2016-07-22 21:41:07 +0000 |
|---|---|---|
| committer | Waref Haque <warefhaque@inside-239-60.wireless.utoronto.ca> | 2016-07-22 21:41:07 +0000 |
| commit | 1da28e930df1438fee1528c4dbb2c024fc3824e7 (patch) | |
| tree | e8ae1e3e84146aaa0ea8ddc7c13c0a6a0d741771 /routes/index.js | |
| parent | 42d17334a8915bb8f5e7c605a38dac56462499b1 (diff) | |
add solutions
Diffstat (limited to 'routes/index.js')
| -rw-r--r-- | routes/index.js | 8 |
1 files changed, 8 insertions, 0 deletions
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) { |
