Commit 12fc8ec1 by Ravindra Kanojiya

created blogs

1 parent 9dddcfe6
{
"kind": "collectionType",
"collectionName": "blogs",
"info": {
"singularName": "blog",
"pluralName": "blogs",
"displayName": "Blogs"
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {},
"attributes": {
"image": {
"allowedTypes": [
"images"
],
"type": "media",
"multiple": false
},
"title": {
"type": "text"
},
"categories": {
"type": "string"
},
"read": {
"type": "string"
},
"description": {
"type": "richtext"
},
"slug": {
"type": "uid",
"targetField": "title"
},
"name": {
"type": "string"
},
"profilePic": {
"allowedTypes": [
"images"
],
"type": "media",
"multiple": false
},
"date": {
"type": "date"
}
}
}
'use strict';
/**
* blog controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::blog.blog');
'use strict';
/**
* blog router
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::blog.blog');
'use strict';
/**
* blog service
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::blog.blog');
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!