UNPKG

@arshiash80/strapi-plugin-iconhub

Version:

Icon picker plugin for Strapi with Iconify integration — search, select, and store icons with raw SVG for high-performance rendering.

72 lines (71 loc) 1.25 kB
"use strict"; const bootstrap = ({ strapi }) => { }; const destroy = ({ strapi }) => { }; const register = ({ strapi }) => { strapi.customFields.register({ name: "iconhub", type: "json", plugin: "strapi-plugin-iconhub", inputSize: { default: 4, isResizable: true } }); }; const config = { default: {}, validator() { } }; const contentTypes = {}; const controller = ({ strapi }) => ({ index(ctx) { ctx.body = strapi.plugin("strapi-plugin-iconhub").service("service").getWelcomeMessage(); } }); const controllers = { controller }; const middlewares = {}; const policies = {}; const contentAPIRoutes = [ { method: "GET", path: "/", // name of the controller file & the method. handler: "controller.index", config: { policies: [] } } ]; const routes = { "content-api": { type: "content-api", routes: contentAPIRoutes } }; const service = ({ strapi }) => ({ getWelcomeMessage() { return "Welcome to Strapi 🚀"; } }); const services = { service }; const index = { register, bootstrap, destroy, config, controllers, routes, services, contentTypes, policies, middlewares }; module.exports = index; //# sourceMappingURL=index.js.map