Skip to content

Commit 6d99cce

Browse files
committed
fix: renamed hosts to host. the value can be a string or an array of strings
1 parent 5fdf473 commit 6d99cce

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CoCreate.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = {
1010
"name": "index.html",
1111
"path": "/docs/api/index.html",
1212
"src": "{{./docs/index.html}}",
13-
"hosts": [
13+
"host": [
1414
"*",
1515
"general.cocreate.app"
1616
],

src/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ var api = (() => {
6464
collection: "organizations",
6565
filter: {
6666
query: [{
67-
name: 'hosts',
67+
name: 'host',
6868
operator: "$in",
6969
value: [hostname]
7070
}],

0 commit comments

Comments
 (0)