@inspirer-dev/hero-widget-selector
Version:
A custom field plugin for Strapi v5 that provides a widget selector with size filtering capabilities. Perfect for selecting hero widgets from a filtered collection based on size (S, M, L, XL).
39 lines (38 loc) • 714 B
text/typescript
export default [
{
method: 'GET',
path: '/widgets/admin',
handler: 'controller.getFilteredWidgets',
config: {
policies: [],
auth: false,
},
},
{
method: 'GET',
path: '/hero-layouts/admin',
handler: 'controller.getHeroLayouts',
config: {
policies: [],
auth: false,
},
},
{
method: 'GET',
path: '/hero-layouts/:layoutId/populated',
handler: 'controller.getPopulatedLayout',
config: {
policies: [],
auth: false,
},
},
{
method: 'GET',
path: '/hero-layouts/slug/:layoutSlug/populated',
handler: 'controller.getPopulatedLayout',
config: {
policies: [],
auth: false,
},
},
];