var express = require('express');
var router = express.Router();
var controller = require('../controllers/index');

/* GET home page. */
router.get('/', function(req, res, next) {
  res.render('index', { title: 'Express' });
});

/* POST home page. */
router.post('/', function(req, res, next) {
	console.dir(req.body);
	res.send(JSON.stringify(req.body));
});

module.exports = router;

@@ -61,58 +61,8 @@
 r();
-%0Avar controller = require('../controllers/index');
 %0A%0A/*
@@ -177,29 +177,100 @@
 );%0A%0A
-/* POST home page. */
+router.get('/create-account', function(req, res, next) %7B%0A%09res.render('create_account');%0A%7D);%0A
 %0Arou
@@ -276,24 +276,38 @@
 uter.post('/
+create-account
 ', function(
@@ -357,43 +357,480 @@
 res.
-send(JSON.stringify(req.body));%0A%7D);
+render('account_created');%0A%7D);%0A%0Arouter.get('/attendance', function(req, res, next) %7B%0A%09if(req.body.login) %7B%0A%09%09req.flash('success', %7B%0A%09%09%09msg: 'Good job!'%0A%09%09%7D);%0A%09%09req.body.login = false;%0A%09%7D else %7B%0A%09%09res.render('attendance');%0A%09%7D%0A%7D);%0A%0Arouter.post('/attendance', function(req, res, next) %7B%0A%09console.log(req.body.card);%0A%0A%7D);%0A%0Arouter.get('/login', function(req, res, next) %7B%0A%09res.render('login');%0A%7D);%0A%0Afunction verifyCard(card) %7B%0A%09//if card in db, sign in%0A%09//otherwise throw err%0A%7D
 %0A%0Amo

Add create account get and post routes, attendance get and post routes, login route, and verifyCard dummy function for use in attendance.