[guadec-web-regcfp/develop] Add registration skeleton



commit 24c3e8ec9f7bcab59e0312809c8609cab5d42cce
Author: Patrick Uiterwijk <puiterwijk redhat com>
Date:   Fri May 22 12:05:06 2015 +0200

    Add registration skeleton

 app.js                 |    2 ++
 routes/registration.js |   11 +++++++++++
 2 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/app.js b/app.js
index b3bb457..7145bb6 100644
--- a/app.js
+++ b/app.js
@@ -13,6 +13,7 @@ var db = require('./models/index');
 var routes_index = require('./routes/index');
 var routes_auth = require('./routes/auth');
 var routes_papers = require('./routes/papers');
+var routes_registration = require('./routes/registration');
 
 var app = express();
 
@@ -78,6 +79,7 @@ app.use(express.static(path.join(__dirname, 'public')));
 app.use('/', routes_index);
 app.use('/auth', routes_auth);
 app.use('/papers', routes_papers);
+app.use('/registration', routes_registration);
 
 // catch 404 and forward to error handler
 app.use(function(req, res, next) {
diff --git a/routes/registration.js b/routes/registration.js
new file mode 100644
index 0000000..6309524
--- /dev/null
+++ b/routes/registration.js
@@ -0,0 +1,11 @@
+var express = require('express');
+var router = express.Router();
+
+var utils = require('../utils');
+
+var models = require('../models');
+var User = models.User;
+
+
+
+module.exports = router;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]