@@ -31,7 +31,7 @@ router.get('/list', function(req, res) {
31
31
} ) ;
32
32
33
33
router . get ( '/:id' , function ( req , res , next ) {
34
- return combine ( req . faceParts , function ( err , stdout ) {
34
+ return combine ( req . faceParts , false , function ( err , stdout ) {
35
35
return common . sendImage ( err , stdout , req , res , next ) ;
36
36
} ) ;
37
37
} ) ;
@@ -42,7 +42,7 @@ router.get('/:size/:id', function(req, res, next) {
42
42
} ) ;
43
43
} ) ;
44
44
45
- router . get ( '/face/:eyes/:nose/:mouth/:color' , function ( req , res , next ) {
45
+ router . get ( '/face/:eyes/:nose/:mouth/:color/:size? ' , function ( req , res , next ) {
46
46
let faceParts = { color : '#' + req . params . color } ;
47
47
48
48
partTypes . forEach ( function ( type ) {
@@ -61,7 +61,7 @@ router.get('/face/:eyes/:nose/:mouth/:color', function(req, res, next) {
61
61
faceParts [ type ] = pathFor ( type , fileName ) ;
62
62
} ) ;
63
63
64
- return combine ( faceParts , function ( err , stdout ) {
64
+ return combine ( faceParts , req . params . size , function ( err , stdout ) {
65
65
return common . sendImage ( err , stdout , req , res , next ) ;
66
66
} ) ;
67
67
} ) ;
0 commit comments