mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-17 23:44:39 -05:00
parent
95b5fb1c81
commit
cf1e4aa593
4 changed files with 16 additions and 4 deletions
|
@ -83,7 +83,7 @@
|
||||||
"defaultValue" : "tryghost"
|
"defaultValue" : "tryghost"
|
||||||
},
|
},
|
||||||
"labs": {
|
"labs": {
|
||||||
"defaultValue": "{\"publicAPI\": true}"
|
"defaultValue": "{}"
|
||||||
},
|
},
|
||||||
"navigation": {
|
"navigation": {
|
||||||
"defaultValue": "[{\"label\":\"Home\", \"url\":\"/\"},{\"label\":\"Tag\", \"url\":\"/tag/getting-started/\"}, {\"label\":\"Author\", \"url\":\"/author/ghost/\"},{\"label\":\"Help\", \"url\":\"https://help.ghost.org\"}]"
|
"defaultValue": "[{\"label\":\"Home\", \"url\":\"/\"},{\"label\":\"Tag\", \"url\":\"/tag/getting-started/\"}, {\"label\":\"Author\", \"url\":\"/author/ghost/\"},{\"label\":\"Help\", \"url\":\"https://help.ghost.org\"}]"
|
||||||
|
|
|
@ -42,7 +42,6 @@ describe('Configuration API', function () {
|
||||||
props.blogUrl.should.eql('http://127.0.0.1:2369/');
|
props.blogUrl.should.eql('http://127.0.0.1:2369/');
|
||||||
|
|
||||||
props.useGravatar.should.eql(false);
|
props.useGravatar.should.eql(false);
|
||||||
props.publicAPI.should.eql(true);
|
|
||||||
props.clientId.should.eql('ghost-admin');
|
props.clientId.should.eql('ghost-admin');
|
||||||
props.clientSecret.should.eql('not_available');
|
props.clientSecret.should.eql('not_available');
|
||||||
|
|
||||||
|
|
|
@ -23,6 +23,20 @@ describe('Public API', function () {
|
||||||
})
|
})
|
||||||
.then(function () {
|
.then(function () {
|
||||||
return localUtils.doAuth(request, 'users:no-owner', 'user:inactive', 'posts', 'tags:extra', 'client:trusted-domain');
|
return localUtils.doAuth(request, 'users:no-owner', 'user:inactive', 'posts', 'tags:extra', 'client:trusted-domain');
|
||||||
|
})
|
||||||
|
.then(function (token) {
|
||||||
|
return request.put(localUtils.API.getApiQuery('settings/'))
|
||||||
|
.set('Authorization', 'Bearer ' + token)
|
||||||
|
.send({
|
||||||
|
settings: [{
|
||||||
|
key: 'labs',
|
||||||
|
value: {publicAPI: true}
|
||||||
|
}]
|
||||||
|
})
|
||||||
|
.expect('Content-Type', /json/)
|
||||||
|
.expect('Cache-Control', testUtils.cacheRules.private)
|
||||||
|
.expect(200)
|
||||||
|
.then(() => {});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,6 @@ describe('Configuration API', function () {
|
||||||
props.blogUrl.should.eql('http://127.0.0.1:2369/');
|
props.blogUrl.should.eql('http://127.0.0.1:2369/');
|
||||||
|
|
||||||
props.useGravatar.should.eql(false);
|
props.useGravatar.should.eql(false);
|
||||||
props.publicAPI.should.eql(true);
|
|
||||||
props.clientId.should.eql('ghost-admin');
|
props.clientId.should.eql('ghost-admin');
|
||||||
props.clientSecret.should.eql('not_available');
|
props.clientSecret.should.eql('not_available');
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue