Skip to content
Snippets Groups Projects
Commit 5b7410a3 authored by Guilherme Eduardo's avatar Guilherme Eduardo
Browse files

Issue #2: FIX dirs working

parents
No related branches found
No related tags found
1 merge request!2Issue #2: FIX dirs working
'use strict';
/* eslint-disable no-unused-vars */
module.exports = (config, webpack) => {
// Note: we provide webpack above so you should not `require` it
// Perform customizations to webpack config
// Important: return the modified config
return config;
};
{
"kind": "singleType",
"collectionName": "homes",
"info": {
"singularName": "home",
"pluralName": "homes",
"displayName": "home",
"description": ""
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {},
"attributes": {
"Quem_somos": {
"type": "text"
}
}
}
'use strict';
/**
* home controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::home.home');
'use strict';
/**
* home router
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::home.home');
'use strict';
/**
* home service
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::home.home');
{
"kind": "collectionType",
"collectionName": "posts",
"info": {
"singularName": "post",
"pluralName": "posts",
"displayName": "Post",
"description": ""
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {},
"attributes": {
"Titulo": {
"type": "string"
},
"Imagem": {
"type": "media",
"multiple": true,
"required": false,
"allowedTypes": [
"images",
"files",
"videos",
"audios"
]
},
"Autor": {
"type": "string"
},
"Data": {
"type": "date"
},
"Descricao": {
"type": "richtext"
},
"Sumario": {
"type": "text"
}
}
}
'use strict';
/**
* post controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::post.post');
'use strict';
/**
* post router
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::post.post');
'use strict';
/**
* post service
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::post.post');
'use strict';
module.exports = {
/**
* An asynchronous register function that runs before
* your application is initialized.
*
* This gives you an opportunity to extend code.
*/
register(/*{ strapi }*/) {},
/**
* An asynchronous bootstrap function that runs before
* your application gets started.
*
* This gives you an opportunity to set up your data model,
* run jobs, or perform some special logic.
*/
bootstrap(/*{ strapi }*/) {},
};
import type { Schema, Attribute } from '@strapi/strapi';
declare module '@strapi/types' {
export module Shared {}
}
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment