 	req.svu.term = data.termsByCode[req.params.term]
 	next()
 
-studentsRouter.get '/select/:program', (req, res)->
+studentsRouter.get '/select/:program', (req, res, next)->
 	req.studentObject.get 'get_selectable_classes', {pid: req.svu.program.id}, (err, data)->
 		return next(err) if err
 		res.json({success: true, data: data})
 
-studentsRouter.get '/select/:program/:courseId', (req, res)->
+studentsRouter.get '/select/:program/:courseId', (req, res, next)->
 
 	opts= {
 		pid: req.svu.program.id,

		result.stud.getLoginRetObject (err, loginResult)->
			res.send(loginResult)

v0.get '/web', loadStudentFromToken, (req, res)->
	res.send {
		success: true
		student: {

			]
		}

studentsRouter.post '/select/:program/:courseId', etabits.jsonMiddleware, (req, res, next)->
	opts= {
		pid: parseInt(req.svu.program.id),
		cid: parseInt(req.params.courseId)
