Initial Strapi plugin project
This commit is contained in:
100 files changed
+48612
No files matched your search
@@ -0,0 +1,4 @@
|
||||
export default () => ({
|
||||
type: 'admin',
|
||||
routes: [],
|
||||
});
|
||||
@@ -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: [],
|
||||
},
|
||||
},
|
||||
],
|
||||
});
|
||||
@@ -0,0 +1,9 @@
|
||||
import contentAPIRoutes from './content-api';
|
||||
import adminAPIRoutes from './admin';
|
||||
|
||||
const routes = {
|
||||
'content-api': contentAPIRoutes,
|
||||
admin: adminAPIRoutes,
|
||||
};
|
||||
|
||||
export default routes;
|
||||
Reference in new issue
Block a user