mirror of
https://github.com/strapi/strapi.git
synced 2025-07-18 22:45:47 +00:00

As a result of taking a look on PR #1967 I realized there is 819 executable files in this repository. It is obvious this is an error.
23 lines
346 B
JavaScript
23 lines
346 B
JavaScript
'use strict';
|
|
|
|
/**
|
|
* Expose main routes of the generated plugin
|
|
*/
|
|
|
|
module.exports = scope => {
|
|
function generateRoutes() {
|
|
return {
|
|
routes: [{
|
|
method: 'GET',
|
|
path: '/',
|
|
handler: scope.globalID + '.index',
|
|
config: {
|
|
policies: []
|
|
}
|
|
}]
|
|
};
|
|
}
|
|
|
|
return generateRoutes();
|
|
};
|