Added redirects to habitica for non-API urls

This commit is contained in:
Kevin Gisi
2015-07-30 13:20:24 -04:00
parent a398fe0af2
commit cfdcadb2bc
2 changed files with 16 additions and 0 deletions

View File

@@ -97,6 +97,7 @@ if (cores!==0 && cluster.isMaster && (isDev || isProd)) {
app.set("view engine", "jade");
app.use(express.favicon(publicDir + '/favicon.ico'));
app.use(middleware.cors);
app.use(middleware.forceHabitica);
app.use(middleware.forceSSL);
app.use(express.urlencoded());
app.use(express.json());