File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change 39
39
"bluebird" : " ^3.4.1" ,
40
40
"body-parser" : " ^1.15.0" ,
41
41
"co" : " ^4.6.0" ,
42
+ "compression" : " ^1.7.3" ,
42
43
"config" : " ^1.20.1" ,
43
44
"continuation-local-storage" : " ^3.1.7" ,
44
45
"cors" : " ^2.8.4" ,
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import _ from 'lodash';
3
3
import config from 'config' ;
4
4
import validate from 'express-validation' ;
5
5
import { Router } from 'express' ;
6
+ import compression from 'compression' ;
6
7
7
8
const router = Router ( ) ;
8
9
@@ -46,6 +47,8 @@ router.route('/v4/projects/metadata/productCategories')
46
47
router . route ( '/v4/projects/metadata/productCategories/:key' )
47
48
. get ( require ( './productCategories/get' ) ) ;
48
49
50
+
51
+ router . use ( '/v4/projects/metadata' , compression ( ) ) ;
49
52
router . route ( '/v4/projects/metadata' )
50
53
. get ( require ( './metadata/list' ) ) ;
51
54
You can’t perform that action at this time.
0 commit comments