From efa89313fa4152252b477aafd88f7cf4a66747d8 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 5 Feb 2026 10:19:56 +0000 Subject: Initial Strapi plugin project --- server/src/controllers/controller.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 server/src/controllers/controller.ts (limited to 'server/src/controllers/controller.ts') 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; -- cgit v1.2.3