diff --git a/core/shared/config/overrides.json b/core/shared/config/overrides.json index ebf0992b49..f292ef42dc 100644 --- a/core/shared/config/overrides.json +++ b/core/shared/config/overrides.json @@ -61,11 +61,15 @@ }, "api": { "versions": { - "all": ["v2", "v3", "canary"], + "all": ["v2", "v3", "v4", "canary"], "canary": { "admin": "canary/admin", "content": "canary/content" }, + "v4": { + "admin": "canary/admin", + "content": "canary/content" + }, "v3": { "admin": "v3/admin", "content": "v3/content" diff --git a/test/unit/services/themes/engines/create_spec.js b/test/unit/services/themes/engines/create_spec.js index 9dfb01dfe8..8ce86ea84e 100644 --- a/test/unit/services/themes/engines/create_spec.js +++ b/test/unit/services/themes/engines/create_spec.js @@ -131,7 +131,19 @@ describe('Themes: engines', function () { }); engines.should.eql({ - 'ghost-api': 'v3' + 'ghost-api': 'v4' + }); + }); + + it('v4', function () { + const engines = themeEngines.create({ + engines: { + 'ghost-api': 'v4' + } + }); + + engines.should.eql({ + 'ghost-api': 'v4' }); }); });