Commit ec262244 by jay

.

1 parent 974273cf
......@@ -4,8 +4,8 @@
"version": "0.1.0",
"description": "A Strapi application",
"scripts": {
"develop": "strapi develop -p 1339",
"start": "strapi start -p 1339",
"develop": "strapi develop",
"start": "strapi start",
"build": "strapi build",
"strapi": "strapi",
"start_prod": "NODE_ENV=production strapi start",
......
{
"kind": "collectionType",
"kind": "singleType",
"collectionName": "current_histories",
"info": {
"singularName": "current-history",
......
{
"kind": "collectionType",
"collectionName": "questions",
"info": {
"singularName": "question",
"pluralName": "questions",
"displayName": "Questions",
"description": ""
},
"options": {
"draftAndPublish": false
},
"pluginOptions": {},
"attributes": {
"question": {
"type": "text"
},
"answer": {
"type": "text"
},
"user": {
"type": "relation",
"relation": "oneToOne",
"target": "admin::user"
},
"uuid": {
"type": "relation",
"relation": "manyToOne",
"target": "api::visitor.visitor",
"inversedBy": "questions"
}
}
}
'use strict';
/**
* question controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::question.question');
'use strict';
/**
* question router
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::question.question');
'use strict';
/**
* question service
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::question.question');
{
"kind": "collectionType",
"collectionName": "visitors",
"info": {
"singularName": "visitor",
"pluralName": "visitors",
"displayName": "Visitor",
"description": ""
},
"options": {
"draftAndPublish": false
},
"pluginOptions": {},
"attributes": {
"uuid": {
"type": "string"
},
"location": {
"type": "string"
},
"language": {
"type": "string"
},
"questions": {
"type": "relation",
"relation": "oneToMany",
"target": "api::question.question",
"mappedBy": "uuid"
}
}
}
'use strict';
/**
* visitor controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::visitor.visitor');
'use strict';
/**
* visitor router
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::visitor.visitor');
'use strict';
/**
* visitor service
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::visitor.visitor');
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!