We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 891cbf1 commit 81465abCopy full SHA for 81465ab
src/routes/avatars.js
@@ -31,12 +31,6 @@ router.get('/list', function(req, res) {
31
return res.set('Content-Type', 'application/json').send(response);
32
});
33
34
-router.get('/:size?/:id', function(req, res, next) {
35
- return combine(req.faceParts, req.params.size, function(err, stdout) {
36
- return common.sendImage(err, stdout, req, res, next);
37
- });
38
-});
39
-
40
router.get('/:size?/random', function(req, res) {
41
var faceParts;
42
faceParts = potato.parts(uuid.v4());
@@ -47,6 +41,12 @@ router.get('/:size?/random', function(req, res) {
47
48
49
43
44
+router.get('/:size?/:id', function(req, res, next) {
45
+ return combine(req.faceParts, req.params.size, function(err, stdout) {
46
+ return common.sendImage(err, stdout, req, res, next);
+ });
+});
+
50
router.get('/face/:eyes/:nose/:mouth/:color/:size?', function(req, res, next) {
51
let faceParts = { color: '#' + req.params.color };
52
0 commit comments