From 7fe5502dc173cfee7c3b3178fb233264ad7c6dc3 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 5 Feb 2026 11:53:17 +0000 Subject: 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. --- server/src/controllers/controller.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 server/src/controllers/controller.js (limited to 'server/src/controllers/controller.js') 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; -- cgit v1.2.3