From a6e37a6a5469840fcfd688417f8b2363793bf2fa Mon Sep 17 00:00:00 2001 From: Assisting Date: Sat, 23 Mar 2019 00:21:38 -0600 Subject: [PATCH] Small bug --- tilty_cat.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tilty_cat.js b/tilty_cat.js index f727a97..d1f397e 100644 --- a/tilty_cat.js +++ b/tilty_cat.js @@ -36,6 +36,12 @@ var dogReq = function (req, res) { rotate(req, res); } +var catReq = function (req, res) { + filename = '/cat.png'; + + rotate(req, res); +} + var rotate = function (req, res) { var degrees = Number.parseInt(req.params.degree); @@ -60,7 +66,7 @@ var rotate = function (req, res) { ); // End stream() } -app.get('/tilty_cat/:degree.png', rotate); +app.get('/tilty_cat/:degree.png', catReq); app.get('/tilty_cat/croc_mode/', getCrocMode);