diff options
Diffstat (limited to 'server/src/controllers')
| -rw-r--r-- | server/src/controllers/controller.ts | 13 | ||||
| -rw-r--r-- | server/src/controllers/index.ts | 5 |
2 files changed, 18 insertions, 0 deletions
diff --git a/server/src/controllers/controller.ts b/server/src/controllers/controller.ts new file mode 100644 index 0000000..d643b4a --- /dev/null +++ b/server/src/controllers/controller.ts @@ -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; diff --git a/server/src/controllers/index.ts b/server/src/controllers/index.ts new file mode 100644 index 0000000..9a386e9 --- /dev/null +++ b/server/src/controllers/index.ts @@ -0,0 +1,5 @@ +import controller from './controller'; + +export default { + controller, +}; |
