Initial Strapi plugin project
This commit is contained in:
13
server/src/controllers/controller.ts
Normal file
13
server/src/controllers/controller.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import type { Core } from '@strapi/strapi';
|
||||
|
||||
const controller = ({ strapi }: { strapi: Core.Strapi }) => ({
|
||||
index(ctx) {
|
||||
ctx.body = strapi
|
||||
.plugin('strapi-plugin-checkbox-list')
|
||||
// the name of the service file & the method.
|
||||
.service('service')
|
||||
.getWelcomeMessage();
|
||||
},
|
||||
});
|
||||
|
||||
export default controller;
|
||||
Reference in New Issue
Block a user