diff options
| author | Valentin Popov <valentin@popov.link> | 2026-02-05 13:19:56 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-02-05 13:19:56 +0300 |
| commit | efa89313fa4152252b477aafd88f7cf4a66747d8 (patch) | |
| tree | 5939b251fe1bbc6bea3881a71154cabd3aa538ec /server/src/controllers/controller.ts | |
| parent | f6de8611955bf382612996500efba21a2d64ea1f (diff) | |
| download | strapi-plugin-checkbox-list-efa89313fa4152252b477aafd88f7cf4a66747d8.tar.xz strapi-plugin-checkbox-list-efa89313fa4152252b477aafd88f7cf4a66747d8.zip | |
Initial Strapi plugin project
Diffstat (limited to 'server/src/controllers/controller.ts')
| -rw-r--r-- | server/src/controllers/controller.ts | 13 |
1 files changed, 13 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; |
