You will have to define a route in your plugins backend, which will return this value.
Then in the frontend you can query the route like so
Import { request } from ‘strapi-helper-plugin’;
Const contentTypes = await request(‘/custom-plugin-route’);
You will have to define a route in your plugins backend, which will return this value.
Then in the frontend you can query the route like so
Import { request } from ‘strapi-helper-plugin’;
Const contentTypes = await request(‘/custom-plugin-route’);