chore(throttling): throttle in dev too

This commit is contained in:
Tyler Renelle
2014-01-31 11:11:16 -07:00
parent 1faec250d8
commit 87d196b038
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -95,8 +95,7 @@ if (cluster.isMaster && (isDev || isProd)) {
app.set("port", nconf.get('PORT'));
if (isProd)
middleware.apiThrottle(app);
middleware.apiThrottle(app);
if (!isProd) app.use(express.logger("dev"));
app.use(express.compress());
app.set("views", __dirname + "/../views");