Refactoring Animals Routes

Link: https://www.codecademy.com/courses/learn-express/lessons/learn-express-routers/exercises/refactoring-animals-routes?action=resume_content_item

I’m getting the following error message when I try to check my work for the ‘Refactoring Animals Routes’ lesson:

Did you send a response from the GET /animals/:id route? 1

Here’s the relevant code within ‘animals.js’:

const express = require(‘express’);

animalsRouter = express.Router();

let animals = ;
seedElements(animals, ‘animals’);

// Get all animals
animalsRouter.get(’/’, (req, res, next) => {
res.send(animals);
});

// Get a single animal
animalsRouter.get(’/animals/:id’, (req, res, next) => {
const animal = getElementById(req.params.id, animals);
if (animal) {
res.send(animal);
} else {
res.status(404).send();
}
});