Explorar el Código

Fix pull request #158

https://github.com/gmetais/YellowLabTools/pull/158#issuecomment-220123344
Vincent L hace 9 años
padre
commit
5e4d3c40f5
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      bin/server.js

+ 2 - 1
bin/server.js

@@ -17,6 +17,7 @@ app.use(cors());
 app.use(wwwRedirectMiddleware);
 app.use(authMiddleware);
 app.use(apiLimitsMiddleware);
+app.use(bodyParser.urlencoded({ extended: true })); // for parsing application/x-www-form-urlencoded
 
 
 // Initialize the controllers
@@ -37,4 +38,4 @@ if (!process.env.GRUNTED) {
     });
 }
 
-module.exports = app;
+module.exports = app;