aboutsummaryrefslogtreecommitdiff
path: root/server/src/controllers/controller.ts
blob: d643b4a572a88a0be69c874751f7f646359e47c7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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;