Skip to content

Commit

Permalink
Small bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Assisting committed Mar 23, 2019
1 parent 934dddb commit a6e37a6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tilty_cat.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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);

Expand Down

0 comments on commit a6e37a6

Please sign in to comment.