mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 11:52:41 +08:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user