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/routes/admin/index.js | 6 ++++++ server/src/routes/content-api/index.js | 16 ++++++++++++++++ server/src/routes/index.js | 12 ++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 server/src/routes/admin/index.js create mode 100644 server/src/routes/content-api/index.js create mode 100644 server/src/routes/index.js (limited to 'server/src/routes') diff --git a/server/src/routes/admin/index.js b/server/src/routes/admin/index.js new file mode 100644 index 0000000..c660c05 --- /dev/null +++ b/server/src/routes/admin/index.js @@ -0,0 +1,6 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = () => ({ + type: 'admin', + routes: [], +}); diff --git a/server/src/routes/content-api/index.js b/server/src/routes/content-api/index.js new file mode 100644 index 0000000..5b4fd7c --- /dev/null +++ b/server/src/routes/content-api/index.js @@ -0,0 +1,16 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = () => ({ + type: 'content-api', + routes: [ + { + method: 'GET', + path: '/', + // name of the controller file & the method. + handler: 'controller.index', + config: { + policies: [], + }, + }, + ], +}); diff --git a/server/src/routes/index.js b/server/src/routes/index.js new file mode 100644 index 0000000..12b1061 --- /dev/null +++ b/server/src/routes/index.js @@ -0,0 +1,12 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const content_api_1 = __importDefault(require("./content-api")); +const admin_1 = __importDefault(require("./admin")); +const routes = { + 'content-api': content_api_1.default, + admin: admin_1.default, +}; +exports.default = routes; -- cgit v1.2.3