Exposing Data

Let's cover how to expose data through custom API.

We'll cover the following...

Here, we’ll publish some blog articles. The API route is "/api/articles", and the associated callback returns a list of JavaScript objects. Here’s the code to be added to the server just before the last part (the one that starts the listening).

// Define
...