summaryrefslogtreecommitdiff
path: root/server/src/controllers
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2026-02-05 13:19:56 +0300
committerValentin Popov <valentin@popov.link>2026-02-05 13:19:56 +0300
commitefa89313fa4152252b477aafd88f7cf4a66747d8 (patch)
tree5939b251fe1bbc6bea3881a71154cabd3aa538ec /server/src/controllers
parentf6de8611955bf382612996500efba21a2d64ea1f (diff)
downloadstrapi-plugin-checkbox-list-efa89313fa4152252b477aafd88f7cf4a66747d8.tar.xz
strapi-plugin-checkbox-list-efa89313fa4152252b477aafd88f7cf4a66747d8.zip
Initial Strapi plugin project
Diffstat (limited to 'server/src/controllers')
-rw-r--r--server/src/controllers/controller.ts13
-rw-r--r--server/src/controllers/index.ts5
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,
+};