mirror of
https://git.sleeping.town/mirrors/foxy-moxy
synced 2024-11-15 00:27:43 +00:00
healthcheck route
This commit is contained in:
parent
b78dbe2b03
commit
9e8a029a67
2 changed files with 5 additions and 1 deletions
|
@ -61,7 +61,7 @@ var Fox = function (IMG_WIDTH, IMG_HEIGHT, seed) {
|
||||||
height: eyeHeight,
|
height: eyeHeight,
|
||||||
width: eyeHeight/2,
|
width: eyeHeight/2,
|
||||||
style: 'ellipse',
|
style: 'ellipse',
|
||||||
//style: chance.pickone(['ellipse', 'smiley']),
|
// style: chance.pickone(['ellipse', 'smiley']),
|
||||||
left: {
|
left: {
|
||||||
x: origin.x + (headWidth/2) - offsetX,
|
x: origin.x + (headWidth/2) - offsetX,
|
||||||
y: origin.y + (headHeight/2) + offsetY
|
y: origin.y + (headHeight/2) + offsetY
|
||||||
|
|
|
@ -51,6 +51,10 @@ app.get('/', function(req, res) {
|
||||||
res.end(buffer, 'binary');
|
res.end(buffer, 'binary');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
app.get('/healthcheck', function(req, res) {
|
||||||
|
res.status(200).end();
|
||||||
|
});
|
||||||
|
|
||||||
app.get('/:width', function(req, res) {
|
app.get('/:width', function(req, res) {
|
||||||
var width = parseInt(req.params.width) || 400;
|
var width = parseInt(req.params.width) || 400;
|
||||||
var seed = uuid();
|
var seed = uuid();
|
||||||
|
|
Loading…
Reference in a new issue