---
# System prepended metadata

title: Untitled

---

If you don't understand how the below works, don't move on!

`src/app.js`

```js
...
app.get('/artists', artistControllers.list);
...
```

`src/controllers/artists.js`

```js
...

exports.list = (req, res) => {
  Artist.find().then(artists => {
    res.status(200).json(artists);
  });
};
```