<repo_name>leong985664/yeqingkong-api<file_sep>/controllers/contactController.js
// Return a list of all the contact
exports.list = function(req, res) {
    var data = require('../data/contact.json');
    res.json(data);
};
<file_sep>/controllers/conferencesController.js
// Return a list of all the conference experiences
exports.list = function(req, res) {
    var data = require('../data/conferences.json');
    res.json(data);
};
<file_sep>/routes/api.js
var express = require('express');
var router = express.Router();

// Require controller modules
var awardsController = require('../controllers/awardsController');
var conferencesController = require('../controllers/conferencesController');
var contactController = require('../controllers/contactController');
var coursesController = require('../controllers/coursesController');
var educationController = require('../controllers/educationController');
var publicationsController = require('../controllers/publicationsController');
var researchInterestsController = require('../controllers/researchInterestsController');
var specialtiesController = require('../controllers/specialtiesController');
var studentEvaluationsController = require('../controllers/studentEvaluationsController');
var teachingInterestsController = require('../controllers/teachingInterestsController');

/* GET users listing. */
router.get('/', function(req, res, next) {
  res.send('respond with a resource');
});

router.get('/awards', awardsController.list);
router.get('/conferences', conferencesController.list);
router.get('/contact', contactController.list);
router.get('/courses', coursesController.list);
router.get('/education', educationController.list);
router.get('/publications', publicationsController.list);
router.get('/researchInterests', researchInterestsController.list);
router.get('/specialties', specialtiesController.list);
router.get('/conferences', conferencesController.list);
router.get('/studentEvaluations', studentEvaluationsController.list);
router.get('/teachingInterests', teachingInterestsController.list);

module.exports = router;
<file_sep>/controllers/educationController.js
// Return a list of all the education experiences
exports.list = function(req, res) {
    var data = require('../data/education.json');
    res.json(data);
};
<file_sep>/controllers/researchInterestsController.js
// Return a list of all the research interests
exports.list = function(req, res) {
    var data = require('../data/researchInterests.json');
    res.json(data);
};
<file_sep>/controllers/specialtiesController.js
// Return a list of all the specialties experiences
exports.list = function(req, res) {
    var data = require('../data/specialties.json');
    res.json(data);
};
<file_sep>/controllers/awardsController.js
// Return a list of all the awards
exports.list = function(req, res) {
    var data = require('../data/awards.json');
    res.json(data);
};
