mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	refactor: use body-parser bundled with express (#304)
This commit is contained in:
		
							parent
							
								
									9e06c64068
								
							
						
					
					
						commit
						deb2d97d91
					
				| @ -2,7 +2,6 @@ | ||||
| 
 | ||||
| const express = require('express'); | ||||
| const favicon = require('serve-favicon'); | ||||
| const bodyParser = require('body-parser'); | ||||
| const cookieParser = require('cookie-parser'); | ||||
| const routes = require('./routes'); | ||||
| const path = require('path'); | ||||
| @ -28,7 +27,7 @@ module.exports = function(config) { | ||||
|     } | ||||
| 
 | ||||
|     app.use(cookieParser()); | ||||
|     app.use(bodyParser.json({ strict: false })); | ||||
|     app.use(express.json({ strict: false })); | ||||
|     app.use(unleashSession(config)); | ||||
|     app.use(responseTime(config)); | ||||
|     app.use(requestLogger(config)); | ||||
|  | ||||
| @ -58,7 +58,6 @@ | ||||
|   }, | ||||
|   "dependencies": { | ||||
|     "async": "^2.1.5", | ||||
|     "body-parser": "^1.18.2", | ||||
|     "commander": "^2.9.0", | ||||
|     "cookie-parser": "^1.4.3", | ||||
|     "cookie-session": "^2.0.0-beta.3", | ||||
|  | ||||
| @ -767,7 +767,7 @@ blueimp-md5@^2.3.0: | ||||
|   version "2.10.0" | ||||
|   resolved "https://registry.yarnpkg.com/blueimp-md5/-/blueimp-md5-2.10.0.tgz#02f0843921f90dca14f5b8920a38593201d6964d" | ||||
| 
 | ||||
| body-parser@1.18.2, body-parser@^1.18.2: | ||||
| body-parser@1.18.2: | ||||
|   version "1.18.2" | ||||
|   resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.18.2.tgz#87678a19d84b47d859b83199bd59bce222b10454" | ||||
|   dependencies: | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user