2015-10-27 11:59:38 +01:00

25 lines
372 B
JavaScript

'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 {
const routes = yield routeService.find();
this.body = routes;
} catch (err) {
this.status = 500;
this.body = err;
}
};