aboutsummaryrefslogtreecommitdiff
path: root/server/src/controllers
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2026-02-05 14:53:17 +0300
committerValentin Popov <valentin@popov.link>2026-02-05 14:53:17 +0300
commit7fe5502dc173cfee7c3b3178fb233264ad7c6dc3 (patch)
treee8d82ba993ae0a044c3ce322114851aa9683b51c /server/src/controllers
parentefa89313fa4152252b477aafd88f7cf4a66747d8 (diff)
downloadstrapi-plugin-checkbox-list-7fe5502dc173cfee7c3b3178fb233264ad7c6dc3.tar.xz
strapi-plugin-checkbox-list-7fe5502dc173cfee7c3b3178fb233264ad7c6dc3.zip
Add checkbox-list custom field plugin to Strapi
- Introduced a new custom field type 'checkbox-list' with associated input component. - Updated package.json to reflect the new plugin name. - Added necessary server-side files for plugin registration, including bootstrap, destroy, and service methods. - Updated package-lock.json to include new dependencies and versions. - Enhanced admin interface with custom field registration and input handling.
Diffstat (limited to 'server/src/controllers')
-rw-r--r--server/src/controllers/controller.js12
-rw-r--r--server/src/controllers/index.js9
2 files changed, 21 insertions, 0 deletions
diff --git a/server/src/controllers/controller.js b/server/src/controllers/controller.js
new file mode 100644
index 0000000..dbd8811
--- /dev/null
+++ b/server/src/controllers/controller.js
@@ -0,0 +1,12 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+const controller = ({ strapi }) => ({
+ index(ctx) {
+ ctx.body = strapi
+ .plugin('strapi-plugin-checkbox-list')
+ // the name of the service file & the method.
+ .service('service')
+ .getWelcomeMessage();
+ },
+});
+exports.default = controller;
diff --git a/server/src/controllers/index.js b/server/src/controllers/index.js
new file mode 100644
index 0000000..45ec37c
--- /dev/null
+++ b/server/src/controllers/index.js
@@ -0,0 +1,9 @@
+"use strict";
+var __importDefault = (this && this.__importDefault) || function (mod) {
+ return (mod && mod.__esModule) ? mod : { "default": mod };
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+const controller_1 = __importDefault(require("./controller"));
+exports.default = {
+ controller: controller_1.default,
+};