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 3939 "bluebird" : " ^3.4.1" ,
4040 "body-parser" : " ^1.15.0" ,
4141 "co" : " ^4.6.0" ,
42+ "compression" : " ^1.7.3" ,
4243 "config" : " ^1.20.1" ,
4344 "continuation-local-storage" : " ^3.1.7" ,
4445 "cors" : " ^2.8.4" ,
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import _ from 'lodash';
33import config from 'config' ;
44import validate from 'express-validation' ;
55import { Router } from 'express' ;
6+ import compression from 'compression' ;
67
78const router = Router ( ) ;
89
@@ -46,6 +47,8 @@ router.route('/v4/projects/metadata/productCategories')
4647router . route ( '/v4/projects/metadata/productCategories/:key' )
4748 . get ( require ( './productCategories/get' ) ) ;
4849
50+
51+ router . use ( '/v4/projects/metadata' , compression ( ) ) ;
4952router . route ( '/v4/projects/metadata' )
5053 . get ( require ( './metadata/list' ) ) ;
5154
You can’t perform that action at this time.
0 commit comments