Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
code
Public Stack Site
Commits
603aa5d9
Commit
603aa5d9
authored
Aug 09, 2020
by
alain
🐙
Browse files
add homepage and layers to strapi
parent
a8ae2a7d
Changes
10
Show whitespace changes
Inline
Side-by-side
backend/api/home/config/routes.json
0 → 100644
View file @
603aa5d9
{
"routes"
:
[
{
"method"
:
"GET"
,
"path"
:
"/home"
,
"handler"
:
"home.find"
,
"config"
:
{
"policies"
:
[]
}
},
{
"method"
:
"PUT"
,
"path"
:
"/home"
,
"handler"
:
"home.update"
,
"config"
:
{
"policies"
:
[]
}
},
{
"method"
:
"DELETE"
,
"path"
:
"/home"
,
"handler"
:
"home.delete"
,
"config"
:
{
"policies"
:
[]
}
}
]
}
backend/api/home/controllers/home.js
0 → 100644
View file @
603aa5d9
'
use strict
'
;
/**
* Read the documentation (https://strapi.io/documentation/v3.x/concepts/controllers.html#core-controllers)
* to customize this controller
*/
module
.
exports
=
{};
backend/api/home/models/home.js
0 → 100644
View file @
603aa5d9
'
use strict
'
;
/**
* Read the documentation (https://strapi.io/documentation/v3.x/concepts/models.html#lifecycle-hooks)
* to customize this model
*/
module
.
exports
=
{};
backend/api/home/models/home.settings.json
0 → 100644
View file @
603aa5d9
{
"kind"
:
"singleType"
,
"collectionName"
:
"homes"
,
"info"
:
{
"name"
:
"Home"
},
"options"
:
{
"increments"
:
true
,
"timestamps"
:
true
},
"attributes"
:
{
"introduction"
:
{
"type"
:
"richtext"
},
"layer_explanation_1"
:
{
"type"
:
"richtext"
},
"layer_explanation_2"
:
{
"type"
:
"richtext"
},
"layer_explanation_3"
:
{
"type"
:
"richtext"
},
"layer_explanation_4"
:
{
"type"
:
"richtext"
},
"three_stacks_1"
:
{
"type"
:
"richtext"
},
"three_stacks_2"
:
{
"type"
:
"richtext"
},
"three_stacks_3"
:
{
"type"
:
"richtext"
},
"three_stacks_intro"
:
{
"type"
:
"richtext"
}
}
}
backend/api/home/services/home.js
0 → 100644
View file @
603aa5d9
'
use strict
'
;
/**
* Read the documentation (https://strapi.io/documentation/v3.x/concepts/services.html#core-services)
* to customize this service
*/
module
.
exports
=
{};
backend/api/layer/config/routes.json
0 → 100644
View file @
603aa5d9
{
"routes"
:
[
{
"method"
:
"GET"
,
"path"
:
"/layers"
,
"handler"
:
"layer.find"
,
"config"
:
{
"policies"
:
[]
}
},
{
"method"
:
"GET"
,
"path"
:
"/layers/count"
,
"handler"
:
"layer.count"
,
"config"
:
{
"policies"
:
[]
}
},
{
"method"
:
"GET"
,
"path"
:
"/layers/:id"
,
"handler"
:
"layer.findOne"
,
"config"
:
{
"policies"
:
[]
}
},
{
"method"
:
"POST"
,
"path"
:
"/layers"
,
"handler"
:
"layer.create"
,
"config"
:
{
"policies"
:
[]
}
},
{
"method"
:
"PUT"
,
"path"
:
"/layers/:id"
,
"handler"
:
"layer.update"
,
"config"
:
{
"policies"
:
[]
}
},
{
"method"
:
"DELETE"
,
"path"
:
"/layers/:id"
,
"handler"
:
"layer.delete"
,
"config"
:
{
"policies"
:
[]
}
}
]
}
backend/api/layer/controllers/layer.js
0 → 100644
View file @
603aa5d9
'
use strict
'
;
/**
* Read the documentation (https://strapi.io/documentation/v3.x/concepts/controllers.html#core-controllers)
* to customize this controller
*/
module
.
exports
=
{};
backend/api/layer/models/layer.js
0 → 100644
View file @
603aa5d9
'
use strict
'
;
/**
* Read the documentation (https://strapi.io/documentation/v3.x/concepts/models.html#lifecycle-hooks)
* to customize this model
*/
module
.
exports
=
{};
backend/api/layer/models/layer.settings.json
0 → 100644
View file @
603aa5d9
{
"kind"
:
"collectionType"
,
"collectionName"
:
"layers"
,
"info"
:
{
"name"
:
"Layer"
},
"options"
:
{
"increments"
:
true
,
"timestamps"
:
true
},
"attributes"
:
{
"title"
:
{
"type"
:
"string"
},
"body"
:
{
"type"
:
"richtext"
}
}
}
backend/api/layer/services/layer.js
0 → 100644
View file @
603aa5d9
'
use strict
'
;
/**
* Read the documentation (https://strapi.io/documentation/v3.x/concepts/services.html#core-services)
* to customize this service
*/
module
.
exports
=
{};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment