25 lines
376 B
JavaScript
Raw Normal View History

2017-02-14 01:18:07 +01:00
'use strict';
/**
* Expose main routes of the generated plugin
*/
module.exports = scope => {
function generateRoutes() {
return {
routes: [
{
method: 'GET',
path: '/',
handler: scope.name + '.index',
config: {
policies: [],
},
},
],
2017-02-14 01:18:07 +01:00
};
}
return generateRoutes();
};