Initial Strapi plugin project

This commit is contained in:
Valentin Popov committed 2026-02-05 10:19:56 +00:00
1 parent f6de861195
commit efa89313fa
100 files changed
+48612

No files matched your search

+4
View File
@@ -0,0 +1,4 @@
export default () => ({
type: 'admin',
routes: [],
});
+14
View File
@@ -0,0 +1,14 @@
export default () => ({
type: 'content-api',
routes: [
{
method: 'GET',
path: '/',
// name of the controller file & the method.
handler: 'controller.index',
config: {
policies: [],
},
},
],
});
+9
View File
@@ -0,0 +1,9 @@
import contentAPIRoutes from './content-api';
import adminAPIRoutes from './admin';
const routes = {
'content-api': contentAPIRoutes,
admin: adminAPIRoutes,
};
export default routes;