mirror of
https://github.com/strapi/strapi.git
synced 2025-07-15 04:53:17 +00:00
24 lines
369 B
JavaScript
24 lines
369 B
JavaScript
'use strict';
|
|
|
|
/**
|
|
* Module dependencies
|
|
*/
|
|
|
|
// Local node modules.
|
|
const routeService = require('./helpers');
|
|
|
|
/**
|
|
* Returns the config of the application used
|
|
* by the dashboard
|
|
*/
|
|
|
|
module.exports = function * () {
|
|
try {
|
|
const routes = yield routeService.find();
|
|
this.body = routes;
|
|
} catch (err) {
|
|
this.status = 500;
|
|
this.body = err;
|
|
}
|
|
};
|