mirror of
https://github.com/strapi/strapi.git
synced 2025-07-16 21:41:59 +00:00
25 lines
376 B
JavaScript
25 lines
376 B
JavaScript
'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: [],
|
|
},
|
|
},
|
|
],
|
|
};
|
|
}
|
|
|
|
return generateRoutes();
|
|
};
|