FEATURE: Add stylesheets to bootstrap.json endpoint

This allows API consumers (such as Ember CLI) to dynamically get a list
of styles to embed.
This commit is contained in:
Robin Ward
2020-09-04 14:09:55 -04:00
parent 110f6ec6dd
commit 0f9a58e06f
3 changed files with 49 additions and 2 deletions

View File

@ -15,6 +15,8 @@ describe BootstrapController do
expect(bootstrap).to be_present
expect(bootstrap['title']).to be_present
expect(bootstrap['setup_data']['base_url']).to eq(Discourse.base_url)
expect(bootstrap['stylesheets']).to be_present
preloaded = bootstrap['preloaded']
expect(preloaded['site']).to be_present
expect(preloaded['siteSettings']).to be_present