Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update

  • Loading branch information...
commit db1fee414430adc67a389deb27b2d416a81572f1 1 parent b859c8f
@JacksonTian JacksonTian authored
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());
Please sign in to comment.
Something went wrong with that request. Please try again.