mirror of
https://github.com/strapi/strapi.git
synced 2025-07-18 14:32:56 +00:00
23 lines
346 B
JavaScript
Executable File
23 lines
346 B
JavaScript
Executable File
'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();
|
|
};
|