How do I return the static data?
<p>I am working on a project, a course-rating API. We have been provided with a finished angular application to work with it. We're not expected to change the Angular app. </p>

<p>The first tasks I was asked to set up the routes, with one of them being <code>GET /api/courses route</code></p>

<p>Task two then says: </p>

<p><em>Update the GET /api/courses route to return static data.
Return an array of object literals with "_id" and "title" properties
You should now be able to run the application (using npm start), browse to <a href="http://localhost:5000" rel="nofollow">http://localhost:5000</a>, and see your static data in the AngularJS application's "Courses" screen.</em></p>

<p>I don't understand what this means, where are we returning the data from? This is only step 2 of the project instructions. The mongo database and seed data isn't mentioned until steps 4,5 and 6.</p>

<p>These are my routes set up in my current index.js file:</p>

<pre><code>// include routes
var routes = require('./routes');
// setup our static route to serve files from the "public" folder
app.use('/', express.static('public'));

app.use('/api', routes.courses);
app.use('/api', routes.reviews);
app.use('/api', routes.users);
</code></pre>

<p>And this is my route in my routes folder:</p>

<pre><code>//load express
var express = require('express');
//create router 
var router = express.Router();

// Returns the Course "_id" and "title" properties
router.get('/courses', function(req, res, next){
    //Where is the date coming from? 
    //res.json('data/data.json', [{title:}, {_id:}]);

});
</code></pre>

<p>In the 'before you start' section of the project it does say this:</p>

<p><em>"When you’re ready, you can configure the provided AngularJS client side application to use your REST API instead of the in-browser mock data.
 - Open the public/index.html HTML file into the editor of your choice.
 - Change the constants.useMockData property value to false.
 - Run the application (by using the npm start command) and browse at
   <a href="http://localhost:5000" rel="nofollow">http://localhost:5000</a>. If you already had the application loaded into
   your browser, be sure to refresh the page.
 - The “mock data” alert at the top of the page should no longer be
   visible, indicating that the AngularJS application is now using your
   REST API."</em></p>

<p>I did that way before I started.</p>

<p>I don't understand what I need to be doing here. As you can see from my route code!</p>

<p>I'd really appreciate any help please, I understand this isn't the clearest of questions, I apologise. My repo for the project is here: <a href="https://github.com/judgejab/build-rest-api-with-express-v1" rel="nofollow">https://github.com/judgejab/build-rest-api-with-express-v1</a></p>

<p>The full project instructions are in the readme.</p>