UNPKG

strapi-content-type-explorer

Version:

A Strapi plugin to view your content types and their relationships

18 lines (14 loc) 382 B
"use strict"; module.exports = ({ strapi }) => ({ async getContentTypes() { const types = strapi.contentTypes; let formattedTypes = Object.keys(types).map((key) => ({ name: key, attributes: types[key]["attributes"], info: types[key]["info"], // kind: data[key]["kind"], key: types[key]["uid"], })); return formattedTypes; }, });