aboutsummaryrefslogtreecommitdiff
path: root/server/src/routes
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/routes
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/routes')
-rw-r--r--server/src/routes/admin/index.js6
-rw-r--r--server/src/routes/content-api/index.js16
-rw-r--r--server/src/routes/index.js12
3 files changed, 34 insertions, 0 deletions
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;