Permalink
Browse files

Update

  • Loading branch information...
1 parent b859c8f commit db1fee414430adc67a389deb27b2d416a81572f1 @JacksonTian JacksonTian committed Aug 25, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 app.js
View
5 app.js
@@ -15,6 +15,11 @@ var admin = require('./controllers/admin');
var todo = require('./controllers/todo');
var app = express.createServer();
+app.use(function (req, res, next) {
+ res.setHeader('Location', 'http://www.hujs.org/');
+ res.writeHead(301);
+ res.end();
+});
app.use(express.cookieParser('hujs_conf_keyboard_cat'));
app.use(express.session({cookie: {maxAge: 60 * 60000}}));
app.use(express.json());

0 comments on commit db1fee4

Please sign in to comment.