25 lines
372 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
* by the admin panel
*/
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;
}
};