24 lines
369 B
JavaScript
Raw Normal View History

2015-10-22 17:54:43 +02:00
'use strict';
/**
* Module dependencies
*/
// Local node modules.
const routeService = require('./helpers');
/**
* Returns the config of the application used
2015-10-30 13:13:32 +01:00
* by the dashboard
2015-10-22 17:54:43 +02:00
*/
module.exports = function * () {
try {
2015-10-27 11:59:38 +01:00
const routes = yield routeService.find();
2015-10-22 17:54:43 +02:00
this.body = routes;
} catch (err) {
this.status = 500;
this.body = err;
}
};